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