Ejemplo n.º 1
0
 public void AssignSpatialReference(OSGeo_v1.OSR.SpatialReference reference)
 {
     OgrPINVOKE.Geometry_AssignSpatialReference(swigCPtr, OSGeo_v1.OSR.SpatialReference.getCPtr(reference));
     if (OgrPINVOKE.SWIGPendingException.Pending)
     {
         throw OgrPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
        public int TransformTo(OSGeo_v1.OSR.SpatialReference reference)
        {
            int ret = OgrPINVOKE.Geometry_TransformTo(swigCPtr, OSGeo_v1.OSR.SpatialReference.getCPtr(reference));

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 3
0
        public OSGeo_v1.OSR.SpatialReference GetSpatialReference()
        {
            IntPtr cPtr = OgrPINVOKE.Geometry_GetSpatialReference(swigCPtr);

            OSGeo_v1.OSR.SpatialReference ret = (cPtr == IntPtr.Zero) ? null : new OSGeo_v1.OSR.SpatialReference(cPtr, true, ThisOwn_true());
            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 4
0
        public static Geometry CreateGeometryFromWkt(ref string val, OSGeo_v1.OSR.SpatialReference reference)
        {
            IntPtr   cPtr = OgrPINVOKE.CreateGeometryFromWkt(ref val, OSGeo_v1.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);
        }
Ejemplo n.º 5
0
        public Layer CreateLayer(string name, OSGeo_v1.OSR.SpatialReference srs, wkbGeometryType geom_type, string[] options)
        {
            IntPtr cPtr = OgrPINVOKE.DataSource_CreateLayer(swigCPtr, name, OSGeo_v1.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);
        }