Example #1
0
 public void AddGeomFieldDefn(GeomFieldDefn defn)
 {
     OgrPINVOKE.FeatureDefn_AddGeomFieldDefn(swigCPtr, GeomFieldDefn.getCPtr(defn));
     if (OgrPINVOKE.SWIGPendingException.Pending)
     {
         throw OgrPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
        public int CreateGeomField(GeomFieldDefn field_def, int approx_ok)
        {
            int ret = OgrPINVOKE.Layer_CreateGeomField(swigCPtr, GeomFieldDefn.getCPtr(field_def), approx_ok);

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public GeomFieldDefn GetGeomFieldDefnRef(string field_name)
        {
            IntPtr        cPtr = OgrPINVOKE.Feature_GetGeomFieldDefnRef__SWIG_1(swigCPtr, field_name);
            GeomFieldDefn ret  = (cPtr == IntPtr.Zero) ? null : new GeomFieldDefn(cPtr, false, ThisOwn_false());

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #4
0
        public GeomFieldDefn GetGeomFieldDefn(int i)
        {
            IntPtr        cPtr = OgrPINVOKE.FeatureDefn_GetGeomFieldDefn(swigCPtr, i);
            GeomFieldDefn ret  = (cPtr == IntPtr.Zero) ? null : new GeomFieldDefn(cPtr, false, ThisOwn_false());

            if (OgrPINVOKE.SWIGPendingException.Pending)
            {
                throw OgrPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #5
0
 public static HandleRef getCPtrAndSetReference(GeomFieldDefn obj, object parent)
 {
     if (obj != null)
     {
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
Example #6
0
 public static HandleRef getCPtrAndSetReference(GeomFieldDefn obj, object parent)
 {
     if (obj != null)
     {
       obj.swigParentRef = parent;
       return obj.swigCPtr;
     }
     else
     {
       return new HandleRef(null, IntPtr.Zero);
     }
 }
Example #7
0
 public static HandleRef getCPtrAndDisown(GeomFieldDefn obj, object parent)
 {
     if (obj != null)
     {
         obj.swigCMemOwn   = false;
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
Example #8
0
 public static HandleRef getCPtrAndDisown(GeomFieldDefn obj, object parent)
 {
     if (obj != null)
     {
       obj.swigCMemOwn = false;
       obj.swigParentRef = parent;
       return obj.swigCPtr;
     }
     else
     {
       return new HandleRef(null, IntPtr.Zero);
     }
 }
Example #9
0
 public void AddGeomFieldDefn(GeomFieldDefn defn)
 {
     OgrPINVOKE.FeatureDefn_AddGeomFieldDefn(swigCPtr, GeomFieldDefn.getCPtr(defn));
     if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 }
Example #10
0
 public static HandleRef getCPtr(GeomFieldDefn obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Example #11
0
 public int CreateGeomField(GeomFieldDefn field_def, int approx_ok)
 {
     int ret = OgrPINVOKE.Layer_CreateGeomField(swigCPtr, GeomFieldDefn.getCPtr(field_def), approx_ok);
     if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #12
0
 public static HandleRef getCPtr(GeomFieldDefn obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }