Class ElevationModels
Extension methods to work with ElevationModels.
Inherited Members
Namespace: NetTopologySuite.Algorithm
Assembly: NetTopologySuite.dll
Syntax
public static class ElevationModels
Methods
| Edit this page View SourceAddMissingZ(ElevationModel, Geometry)
Method to add missing z-ordinate values to a geometry. The geometry must be built of CoordinateSequences that are able to carry z-ordinate values.
Declaration
public static void AddMissingZ(this ElevationModel self, Geometry g)
Parameters
Type | Name | Description |
---|---|---|
ElevationModel | self | The elevation model providing missing z-ordinate values |
Geometry | g | The geometry to add the missing z-ordinate values to |
AddMissingZ(ElevationModel, Geometry, CoordinateSequenceToXYAndZ)
Method to add missing z-ordinate values to a geometry. The geometry must be built of CoordinateSequences that are able to carry z-ordinate values.
Declaration
public static void AddMissingZ(this ElevationModel self, Geometry g, ElevationModels.CoordinateSequenceToXYAndZ seqToXYAndZ)
Parameters
Type | Name | Description |
---|---|---|
ElevationModel | self | The elevation model providing missing z-ordinate values |
Geometry | g | The geometry to add the missing z-ordinate values to |
ElevationModels.CoordinateSequenceToXYAndZ | seqToXYAndZ | A method to convert a coordinate sequence into arrays of xy- and z-ordinate values. |
CopyWithZ(ElevationModel, Coordinate)
Creates a copy of c
that has the z-ordinate value at c
.
If the elevation model can't retrieve a z-ordinate value, a copy of c
is
returned.
Declaration
public static Coordinate CopyWithZ(this ElevationModel self, Coordinate c)
Parameters
Type | Name | Description |
---|---|---|
ElevationModel | self | The elevation model to use |
Coordinate | c | A coordinate |
Returns
Type | Description |
---|---|
Coordinate | A copy of |
GetZ(ElevationModel, double[], double[])
Function to get z-ordinate values for an array of xy-ordinate values
Declaration
public static void GetZ(this ElevationModel self, double[] xy, double[] z)
Parameters
Type | Name | Description |
---|---|---|
ElevationModel | self | The elevation model to use |
double[] | xy | An array of xy-ordinate values |
double[] | z | The array of z-ordinate values |