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