21#include <geos/export.h>
23#include <geos/geom/Envelope.h>
91 avgZ = DoubleNotANumber;
103 static const int DEFAULT_CELL_NUM;
109 std::vector<ElevationCell> cells;
110 bool isInitialized =
false;
111 bool hasZValue =
false;
112 double averageZ = DoubleNotANumber;
116 ElevationCell& getCell(
double x,
double y);
118 int getCellOffset(
int ix,
int iy) {
119 return (numCellX * iy + ix);
124 void add(
double x,
double y,
double z);
129 static std::unique_ptr<ElevationModel> create(
const geom::Geometry& geom1,
132 static std::unique_ptr<ElevationModel> create(
const geom::Geometry& geom1);
150 double getZ(
double x,
double y);
An Envelope defines a rectangulare region of the 2D coordinate plane.
Definition Envelope.h:59
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
A simple elevation model used to populate missing Z values in overlay results.
Definition ElevationModel.h:65
double getZ(double x, double y)
void populateZ(geom::Geometry &geom)
Computes Z values for any missing Z values in a geometry, using the computed model.
Basic namespace for all GEOS functionalities.
Definition geos.h:39