Table of Contents

Method Write

Namespace
GeometryHelper.Export
Assembly
GeometryHelper.dll

Write(GeoPoint2)

Writes a point: POINT (x y).

public static string Write(GeoPoint2 point)

Parameters

point GeoPoint2

Returns

string

Write(GeoPoint3)

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

public static string Write(GeoPoint3 point)

Parameters

point GeoPoint3

Returns

string

Write(GeoLine2)

Writes a segment: LINESTRING (...).

public static string Write(GeoLine2 line)

Parameters

line GeoLine2

Returns

string

Write(GeoLine3)

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

public static string Write(GeoLine3 line)

Parameters

line GeoLine3

Returns

string

Write(GeoPolyline2)

Writes a chain: LINESTRING (...).

public static string Write(GeoPolyline2 polyline)

Parameters

polyline GeoPolyline2

Returns

string

Exceptions

ArgumentNullException

Thrown when the chain is null.

Write(GeoPolyline3)

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

public static string Write(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

string

Exceptions

ArgumentNullException

Thrown when the chain is null.

Write(GeoPolygon2)

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

public static string Write(GeoPolygon2 polygon)

Parameters

polygon GeoPolygon2

Returns

string

Exceptions

ArgumentNullException

Thrown when the polygon is null.

Write(GeoPolygon3)

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

public static string Write(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

string

Exceptions

ArgumentNullException

Thrown when the polygon is null.

Write(GeoFace2)

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

public static string Write(GeoFace2 face)

Parameters

face GeoFace2

Returns

string

Exceptions

ArgumentNullException

Thrown when the face is null.

Write(IEnumerable<GeoFace2>)

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

public static string Write(IEnumerable<GeoFace2> faces)

Parameters

faces IEnumerable<GeoFace2>

Returns

string

Exceptions

ArgumentNullException

Thrown when the faces or one of them are null.