Table of Contents

Class GrpcGeometryConverter

Namespace
Honua.Sdk.Grpc
Assembly
Honua.Sdk.Grpc.dll

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

geometry Geometry
spatialReference HonuaSpatialReference
geometryFactory GeometryFactory

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

geometry Geometry
options HonuaGrpcGeometryReadOptions

Returns

Geometry

ReadSpatialReference(SpatialReference?)

Reads a Geospatial gRPC spatial reference message, returning null when empty.

public static HonuaSpatialReference? ReadSpatialReference(SpatialReference? spatialReference)

Parameters

spatialReference SpatialReference

Returns

HonuaSpatialReference

WriteGeometry(Geometry)

Writes a NetTopologySuite geometry as a Geospatial gRPC geometry message.

public static Geometry WriteGeometry(Geometry geometry)

Parameters

geometry Geometry

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

geometry Geometry
options HonuaGrpcGeometryWriteOptions

Returns

Geometry

WriteSpatialReference(HonuaSpatialReference?)

Writes a spatial reference as a Geospatial gRPC spatial reference message.

public static SpatialReference? WriteSpatialReference(HonuaSpatialReference? spatialReference)

Parameters

spatialReference HonuaSpatialReference

Returns

SpatialReference