Azavea.Open.DAO.PostgreSQL.EWKTWriter.ToPoint C# (CSharp) Method

ToPoint() public static method

Converts a single point into EWKT
public static ToPoint ( IPoint point ) : string
point IPoint The point to write
return 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);
            }
        }