예제 #1
0
        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;
        }
예제 #2
0
        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;
        }