C# Class Azavea.Open.DAO.PostgreSQL.EWKTWriter

PostGIS doesn't use exact WKT, it uses "extended WKT". Unfortunately the WKTWriter class doesn't allow you to extend and override its methods (and many are static anyway) so we offer this alternate implementation as a WKT writer that can write PostGIS WKT.
Mostra file Open project: azavea/net-dao-postgresql

Public Methods

Method Description
ToPoint ( IPoint point ) : string

Converts a single point into EWKT

Write ( IGeometry geometry ) : string

Converts a geometry into EWKT.

Method Details

ToPoint() public static method

Converts a single point into EWKT
public static ToPoint ( IPoint point ) : string
point IPoint The point to write
return string

Write() public method

Converts a geometry into EWKT.
public Write ( IGeometry geometry ) : string
geometry IGeometry The geometry to write.
return string