public static string ToPoint(IPoint point)
{
if (point == null)
{
throw new ArgumentNullException("point", "Cannot convert null point to EWKT.");
}
try
{
return String.Format("SRID={0};{1}", point.SRID, WKTWriter.ToPoint(point.Coordinate));
}
catch (Exception e)
{
throw new LoggingException("Unable to write point to ewkt: " + point, e);
}
}