public static void ConvertToGCSWGS84(IGeometry geometry, String wktProjection) { ICoordinateFilter filter = new GCSWGS84CoordinateFilter(); (filter as GCSWGS84CoordinateFilter).Projection = wktProjection; geometry.Apply(filter); geometry.SRID = ProjectionUtil.GCS_WGS84_SRID; }
public static void ConvertToGCSWGS84(IGeometry geometry) { ICoordinateFilter filter = new GCSWGS84CoordinateFilter(); (filter as GCSWGS84CoordinateFilter).Projection = getWellKnownTextProjection(geometry.SRID); geometry.Apply(filter); geometry.SRID = ProjectionUtil.GCS_WGS84_SRID; }