Class FeatureRecordGeometryExtensions
NetTopologySuite accessors for the GeoServices JSON or GeoJSON geometry on a FeatureRecord.
public static class FeatureRecordGeometryExtensions
- Inheritance
-
FeatureRecordGeometryExtensions
- Inherited Members
Methods
GetGeometry(FeatureRecord, FeatureGeometryFormat, GeometryFactory?)
Returns the record geometry as a NetTopologySuite NetTopologySuite.Geometries.Geometry.
public static Geometry? GetGeometry(this FeatureRecord record, FeatureGeometryFormat format = FeatureGeometryFormat.Auto, GeometryFactory? geometryFactory = null)
Parameters
recordFeatureRecordThe feature record.
formatFeatureGeometryFormatThe geometry encoding, or Auto to infer it.
geometryFactoryGeometryFactoryOptional factory used to construct the geometry.
Returns
- Geometry
The NTS geometry, or null when the record carries no geometry.