Table of Contents

Class FeatureRecordGeometryExtensions

Namespace
Honua.Sdk.Geometry
Assembly
Honua.Sdk.Geometry.dll

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

record FeatureRecord

The feature record.

format FeatureGeometryFormat

The geometry encoding, or Auto to infer it.

geometryFactory GeometryFactory

Optional factory used to construct the geometry.

Returns

Geometry

The NTS geometry, or null when the record carries no geometry.