C# 클래스 Mapsui.Geometries.WellKnownText.GeometryToWKT

Outputs the textual representation of a Mapsui.Geometries.Geometry instance.

The Well-Known Text (WKT) representation of Geometry is designed to exchange geometry data in ASCII form.

Examples of WKT representations of geometry objects are: Geometry WKT Representation A Point POINT(15 20)
Note that point coordinates are specified with no separating comma.
A LineString with four points: LINESTRING(0 0, 10 10, 20 25, 50 60) A Polygon with one exterior ring and one interior ring: POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7, 5 5)) A MultiPoint with three Point values: MULTIPOINT(0 0, 20 20, 60 60) A MultiLineString with two LineString values: MULTILINESTRING((10 10, 20 20), (15 15, 30 15)) A MultiPolygon with two Polygon values: MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)),((5 5,7 5,7 7,5 7, 5 5))) A GeometryCollection consisting of two Point values and one LineString: GEOMETRYCOLLECTION(POINT(10 10), POINT(30 30), LINESTRING(15 15, 20 20))
파일 보기 프로젝트 열기: pauldendulk/Mapsui

공개 메소드들

메소드 설명
Write ( IGeometry geometry ) : string

Converts a Geometry to its Well-known Text representation.

Write ( IGeometry geometry, StringWriter writer ) : void

Converts a Geometry to its Well-known Text representation.

Geometry is written to the output stream as <Gemoetry Tagged Text> string (see the OpenGIS Simple Features Specification).

비공개 메소드들

메소드 설명
AppendCoordinate ( System.Point coordinate, StringWriter writer ) : void

Converts a Coordinate to <Point> format, then Appends it to the writer.

AppendGeometryCollectionTaggedText ( GeometryCollection geometryCollection, StringWriter writer ) : void

Converts a GeometryCollection to <GeometryCollection Tagged Text> format, then Appends it to the writer.

AppendGeometryCollectionText ( GeometryCollection geometryCollection, StringWriter writer ) : void

Converts a GeometryCollection to <GeometryCollection Text > format, then Appends it to the writer.

AppendGeometryTaggedText ( IGeometry geometry, StringWriter writer ) : void

Converts a Geometry to <Geometry Tagged Text > format, then Appends it to the writer.

AppendLineStringTaggedText ( LineString lineString, StringWriter writer ) : void

Converts a LineString to LineString tagged text format,

AppendLineStringText ( LineString lineString, StringWriter writer ) : void

Converts a LineString to <LineString Text> format, then Appends it to the writer.

AppendMultiLineStringTaggedText ( MultiLineString multiLineString, StringWriter writer ) : void

Converts a MultiLineString to <MultiLineString Tagged Text> format, then Appends it to the writer.

AppendMultiLineStringText ( MultiLineString multiLineString, StringWriter writer ) : void

Converts a MultiLineString to <MultiLineString Text> format, then Appends it to the writer.

AppendMultiPointTaggedText ( MultiPoint multipoint, StringWriter writer ) : void

Converts a MultiPoint to <MultiPoint Tagged Text> format, then Appends it to the writer.

AppendMultiPointText ( MultiPoint multiPoint, StringWriter writer ) : void

Converts a MultiPoint to <MultiPoint Text> format, then Appends it to the writer.

AppendMultiPolygonTaggedText ( MultiPolygon multiPolygon, StringWriter writer ) : void

Converts a MultiPolygon to <MultiPolygon Tagged Text> format, then Appends it to the writer.

AppendMultiPolygonText ( MultiPolygon multiPolygon, StringWriter writer ) : void

Converts a MultiPolygon to <MultiPolygon Text> format, then Appends to it to the writer.

AppendPointTaggedText ( Point coordinate, StringWriter writer ) : void

Converts a Coordinate to <Point Tagged Text> format, then Appends it to the writer.

AppendPointText ( Point coordinate, StringWriter writer ) : void

Converts a Coordinate to Point Text format then Appends it to the writer.

AppendPolygonTaggedText ( Polygon polygon, StringWriter writer ) : void

Converts a Polygon to <Polygon Tagged Text> format, then Appends it to the writer.

AppendPolygonText ( Polygon polygon, StringWriter writer ) : void

Converts a Polygon to <Polygon Text> format, then Appends it to the writer.

WriteNumber ( double d ) : string

Converts a double to a string, not in scientific notation.

메소드 상세

Write() 공개 정적인 메소드

Converts a Geometry to its Well-known Text representation.
public static Write ( IGeometry geometry ) : string
geometry IGeometry A Geometry to write.
리턴 string

Write() 공개 정적인 메소드

Converts a Geometry to its Well-known Text representation.
Geometry is written to the output stream as <Gemoetry Tagged Text> string (see the OpenGIS Simple Features Specification).
public static Write ( IGeometry geometry, StringWriter writer ) : void
geometry IGeometry A geometry to process.
writer StringWriter Stream to write out the geometry's text representation.
리턴 void