public static FDGeometry ToFDGeometry(string wkt, int srid) { var geo = new FDGeometry() { WKT = wkt, SRID = srid }; return(geo); }
public static FDGeometry ToFDGeometry(object value) { if (value.GetType() == typeof(SqlGeometry)) { var geom = value as SqlGeometry; if (geom.IsNull == true) { return(null); } var geo = new FDGeometry() { WKT = geom.ToString(), SRID = geom.STSrid.Value }; return(geo); } else { return(value as FDGeometry); } }