Skip to content

ShapeConverter

Namespace: ThinkGeo.Core

public static class ShapeConverter

Inheritance ObjectShapeConverter

Methods

JtsShapeToShape(Geometry)

internal static BaseShape JtsShapeToShape(Geometry targetJtsShape)

Parameters

targetJtsShape Geometry

Returns

BaseShape

ShapeToJtsShape(BaseShape)

internal static Geometry ShapeToJtsShape(BaseShape targetShape)

Parameters

targetShape BaseShape

Returns

Geometry

ShapeToJtsShape(Byte[])

internal static Geometry ShapeToJtsShape(Byte[] wkb)

Parameters

wkb Byte[]

Returns

Geometry

WriteWkb(WkbShapeType, WkbByteOrder, BinaryWriter)

internal static void WriteWkb(WkbShapeType wkbShapeType, WkbByteOrder byteOrder, BinaryWriter writer)

Parameters

wkbShapeType WkbShapeType

byteOrder WkbByteOrder

writer BinaryWriter

WriteWkb(Int32, WkbByteOrder, BinaryWriter)

internal static void WriteWkb(int wkbShapeType, WkbByteOrder byteOrder, BinaryWriter writer)

Parameters

wkbShapeType Int32

byteOrder WkbByteOrder

writer BinaryWriter

WriteWkb(Double, WkbByteOrder, BinaryWriter)

internal static void WriteWkb(double value, WkbByteOrder byteOrder, BinaryWriter writer)

Parameters

value Double

byteOrder WkbByteOrder

writer BinaryWriter

GetBaseShapeFromBytes(Byte[])

internal static BaseShape GetBaseShapeFromBytes(Byte[] wkb)

Parameters

wkb Byte[]

Returns

BaseShape

GetVertexFormWkt(String)

internal static Vertex GetVertexFormWkt(string oneVertexWkt)

Parameters

oneVertexWkt String

Returns

Vertex

SetVertexToWkt(String, Vertex)

internal static string SetVertexToWkt(string oneVertexWkt, Vertex vertex)

Parameters

oneVertexWkt String

vertex Vertex

Returns

String

Events

ConvertedShapeToNtsGeometry

public static event EventHandler<ConvertedShapeToNtsGeometryShapeConverterEventArgs> ConvertedShapeToNtsGeometry;