public void AddGeomFieldDefn(GeomFieldDefn defn)
 {
     OgrPINVOKE.FeatureDefn_AddGeomFieldDefn(swigCPtr, GeomFieldDefn.getCPtr(defn));
     if (OgrPINVOKE.SWIGPendingException.Pending)
     {
         throw OgrPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #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);
        }
        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);
        }
Exemple #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));
     }
 }
Exemple #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);
     }
 }
Exemple #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));
     }
 }
Exemple #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);
     }
 }
Exemple #9
0
 public void AddGeomFieldDefn(GeomFieldDefn defn)
 {
     OgrPINVOKE.FeatureDefn_AddGeomFieldDefn(swigCPtr, GeomFieldDefn.getCPtr(defn));
     if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve();
 }
Exemple #10
0
 public static HandleRef getCPtr(GeomFieldDefn obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #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;
 }
Exemple #12
0
 public static HandleRef getCPtr(GeomFieldDefn obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }