예제 #1
0
        public static string ToWKT(Geometry entity)
        {
            SqlGeometry geometry = ((Geometry)entity).AsSqlServerGeometry();

            geometry = geometry.MakeValid();
            char[] value  = geometry.AsTextZM().Value;
            string retval = new string(value);

            return(retval);
        }
예제 #2
0
 public static string AsWktZM(this SqlGeometry geometry)
 {
     return(new string(geometry.AsTextZM().Value));
 }
예제 #3
0
 public override string ToString()
 {
     return(sqlGeometry.AsTextZM().ToSqlString().ToString());
 }