Table of Contents

Class Wkt

Namespace
GeometryHelper.Export
Assembly
GeometryHelper.dll

Writes shapes as well-known text, which GIS tools, databases and online viewers read.

public static class Wkt
Inheritance
Wkt
Inherited Members

Remarks

Every ring is written closed, its first point repeated at the end, as the format asks. A polygon's boundary goes counter-clockwise and its holes clockwise. Coordinates are written exactly.

Methods

Write(GeoFace2)

Writes a face with its holes: POLYGON ((...), (...)).

Write(GeoLine2)

Writes a segment: LINESTRING (...).

Write(GeoLine3)

Writes a segment in space: LINESTRING Z (...).

Write(GeoPoint2)

Writes a point: POINT (x y).

Write(GeoPoint3)

Writes a point in space: POINT Z (x y z).

Write(GeoPolygon2)

Writes a polygon: POLYGON ((...)).

Write(GeoPolygon3)

Writes a polygon in space: POLYGON Z ((...)).

Write(GeoPolyline2)

Writes a chain: LINESTRING (...).

Write(GeoPolyline3)

Writes a chain in space: LINESTRING Z (...).

Write(IEnumerable<GeoFace2>)

Writes several faces: MULTIPOLYGON (((...)), ((...))), such as what a boolean gives back.