Esempio n. 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);
        }
Esempio n. 2
0
 public static string AsWktZM(this SqlGeometry geometry)
 {
     return(new string(geometry.AsTextZM().Value));
 }
Esempio n. 3
0
 public override string ToString()
 {
     return(sqlGeometry.AsTextZM().ToSqlString().ToString());
 }