public static ToPoint ( IPoint point ) : string | ||
point | IPoint | The point to write |
리턴 | string |
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);
}
}