Example #1
0
 public void AssignSpatialReference(OSGeo_v3.OSR.SpatialReference reference)
 {
     OgrPINVOKE.Geometry_AssignSpatialReference(swigCPtr, OSGeo_v3.OSR.SpatialReference.getCPtr(reference));
     if (OgrPINVOKE.SWIGPendingException.Pending)
     {
         throw OgrPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public void SetSpatialRef(OSGeo_v3.OSR.SpatialReference srs)
 {
     OgrPINVOKE.GeomFieldDefn_SetSpatialRef(swigCPtr, OSGeo_v3.OSR.SpatialReference.getCPtr(srs));
     if (OgrPINVOKE.SWIGPendingException.Pending)
     {
         throw OgrPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
        public CPLErr SetSpatialRef(OSGeo_v3.OSR.SpatialReference srs)
        {
            CPLErr ret = (CPLErr)GdalPINVOKE.Dataset_SetSpatialRef(swigCPtr, OSGeo_v3.OSR.SpatialReference.getCPtr(srs));

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #4
0
        public int TransformTo(OSGeo_v3.OSR.SpatialReference reference)
        {
            int ret = OgrPINVOKE.Geometry_TransformTo(swigCPtr, OSGeo_v3.OSR.SpatialReference.getCPtr(reference));

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #5
0
        public OSGeo_v3.OSR.SpatialReference GetSpatialRef()
        {
            IntPtr cPtr = GdalPINVOKE.Dataset_GetSpatialRef(swigCPtr);

            OSGeo_v3.OSR.SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new OSGeo_v3.OSR.SpatialReference(cPtr, true, ThisOwn_true());
            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #6
0
        public static Geometry CreateGeometryFromWkt(ref string val, OSGeo_v3.OSR.SpatialReference reference)
        {
            IntPtr   cPtr = OgrPINVOKE.CreateGeometryFromWkt(ref val, OSGeo_v3.OSR.SpatialReference.getCPtr(reference));
            Geometry ret  = (cPtr == IntPtr.Zero) ? null : new Geometry(cPtr, true, ThisOwn_true());

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #7
0
        public Layer CreateLayer(string name, OSGeo_v3.OSR.SpatialReference srs, wkbGeometryType geom_type, string[] options)
        {
            IntPtr cPtr = OgrPINVOKE.DataSource_CreateLayer(swigCPtr, name, OSGeo_v3.OSR.SpatialReference.getCPtr(srs), (int)geom_type, (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
            Layer  ret  = (cPtr == IntPtr.Zero) ? null : new Layer(cPtr, false, ThisOwn_false());

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }