C# Class SharpMap.Converters.WellKnownText.GeometryToWKT

Outputs the textual representation of a GeoAPI.Geometries.IGeometry 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))
Afficher le fichier Open project: jumpinjackie/fdotoolbox

Méthodes publiques

Méthode Description
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).

Private Methods

Méthode Description
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 ( System.Point coordinate, StringWriter writer ) : void

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

AppendPointText ( System.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.

Method Details

Write() public static méthode

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

Write() public static méthode

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 System.IO.StringWriter Stream to write out the geometry's text representation.
Résultat void