C# Class MapAround.Serialization.WKTGeometrySerializer

Serializes geometries into well-known text and constructs geometries from such representation.
ファイルを表示 Open project: gkrsu/maparound.core

Public Methods

Method Description
GeometryFromWKT ( string wkt ) : IGeometry

Constructs a geometry from its well-known text representation.

GetGeometryWKT ( IGeometry geometry ) : string

Computes a well-known text representation of geometry.

GetMultiPointWKT ( MultiPoint multiPoint ) : string

Computes a well-known text representation of the multipoint geometry.

GetPointWKT ( PointD point ) : string

Computes a well-known text representation of the point geometry.

GetPolygonWKT ( Polygon polygon ) : string

Computes a well-known text representation of the polygon geometry.

GetPolygonWKT ( Polygon polygon, bool reverseVerticesOrder ) : string

Computes a well-known text representation of the polygon geometry.

GetPolylineWKT ( Polyline polyline ) : string

Computes a well-known text representation of the polyline geometry.

Private Methods

Method Description
contourString ( Contour contour ) : string
pointCoordsString ( ICoordinate point ) : string
readLineString ( WktStreamTokenizer tokenizer ) : Polyline
readMultiLineString ( WktStreamTokenizer tokenizer ) : Polyline
readMultiPoint ( WktStreamTokenizer tokenizer ) : MultiPoint
readMultiPolygon ( WktStreamTokenizer tokenizer ) : Polygon
readPoint ( WktStreamTokenizer tokenizer ) : PointD
readPointCoords ( WktStreamTokenizer tokenizer ) : ICoordinate
readPointCoordsList ( WktStreamTokenizer tokenizer ) : List
readPointsCoordLists ( WktStreamTokenizer tokenizer ) : List>
readPolygon ( WktStreamTokenizer tokenizer ) : Polygon
throwMissingCloseBracket ( WktStreamTokenizer tokenizer ) : void

Method Details

GeometryFromWKT() public static method

Constructs a geometry from its well-known text representation.
public static GeometryFromWKT ( string wkt ) : IGeometry
wkt string
return IGeometry

GetGeometryWKT() public static method

Computes a well-known text representation of geometry.
public static GetGeometryWKT ( IGeometry geometry ) : string
geometry IGeometry A geometry to setialize
return string

GetMultiPointWKT() public static method

Computes a well-known text representation of the multipoint geometry.
public static GetMultiPointWKT ( MultiPoint multiPoint ) : string
multiPoint MultiPoint An instance of MapAround.Geometry.MultiPoint to setialize
return string

GetPointWKT() public static method

Computes a well-known text representation of the point geometry.
public static GetPointWKT ( PointD point ) : string
point PointD An instance of MapAround.Geometry.PointD to setialize
return string

GetPolygonWKT() public static method

Computes a well-known text representation of the polygon geometry.
public static GetPolygonWKT ( Polygon polygon ) : string
polygon Polygon An instance of MapAround.Geometry.Polygon to setialize
return string

GetPolygonWKT() public static method

Computes a well-known text representation of the polygon geometry.
public static GetPolygonWKT ( Polygon polygon, bool reverseVerticesOrder ) : string
polygon Polygon An instance of MapAround.Geometry.Polygon to setialize
reverseVerticesOrder bool A value indicating whether a standart order of vertices /// should be inverted in WKT
return string

GetPolylineWKT() public static method

Computes a well-known text representation of the polyline geometry.
public static GetPolylineWKT ( Polyline polyline ) : string
polyline Polyline An instance of MapAround.Geometry.Polyline to setialize
return string