Class GrpcGeometryConverter
Converts between Geospatial gRPC geometry messages and NetTopologySuite geometries.
public static class GrpcGeometryConverter
- Inheritance
-
GrpcGeometryConverter
- Inherited Members
Methods
ReadGeometry(Geometry, HonuaSpatialReference?, GeometryFactory?)
Reads a Geospatial gRPC geometry message.
public static Geometry ReadGeometry(Geometry geometry, HonuaSpatialReference? spatialReference = null, GeometryFactory? geometryFactory = null)
Parameters
geometryGeometryspatialReferenceHonuaSpatialReferencegeometryFactoryGeometryFactory
Returns
- Geometry
ReadGeometry(Geometry, HonuaGrpcGeometryReadOptions)
Reads a Geospatial gRPC geometry message using the specified decoding options.
public static Geometry ReadGeometry(Geometry geometry, HonuaGrpcGeometryReadOptions options)
Parameters
geometryGeometryoptionsHonuaGrpcGeometryReadOptions
Returns
- Geometry
ReadSpatialReference(SpatialReference?)
Reads a Geospatial gRPC spatial reference message, returning null when empty.
public static HonuaSpatialReference? ReadSpatialReference(SpatialReference? spatialReference)
Parameters
spatialReferenceSpatialReference
Returns
WriteGeometry(Geometry)
Writes a NetTopologySuite geometry as a Geospatial gRPC geometry message.
public static Geometry WriteGeometry(Geometry geometry)
Parameters
geometryGeometry
Returns
- Geometry
WriteGeometry(Geometry, HonuaGrpcGeometryWriteOptions)
Writes a NetTopologySuite geometry as a Geospatial gRPC geometry message using the specified encoding options.
public static Geometry WriteGeometry(Geometry geometry, HonuaGrpcGeometryWriteOptions options)
Parameters
geometryGeometryoptionsHonuaGrpcGeometryWriteOptions
Returns
- Geometry
WriteSpatialReference(HonuaSpatialReference?)
Writes a spatial reference as a Geospatial gRPC spatial reference message.
public static SpatialReference? WriteSpatialReference(HonuaSpatialReference? spatialReference)
Parameters
spatialReferenceHonuaSpatialReference
Returns
- SpatialReference