public void AddFieldDefn(FieldDefn defn) { OgrPINVOKE.FeatureDefn_AddFieldDefn(swigCPtr, FieldDefn.getCPtr(defn)); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } }
public int AlterFieldDefn(int iField, FieldDefn field_def, int nFlags) { int ret = OgrPINVOKE.Layer_AlterFieldDefn(swigCPtr, iField, FieldDefn.getCPtr(field_def), nFlags); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public int CreateField(FieldDefn field_def, int approx_ok) { int ret = OgrPINVOKE.Layer_CreateField(swigCPtr, FieldDefn.getCPtr(field_def), approx_ok); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public FieldDefn GetFieldDefnRef(string field_name) { IntPtr cPtr = OgrPINVOKE.Feature_GetFieldDefnRef__SWIG_1(swigCPtr, field_name); FieldDefn ret = (cPtr == IntPtr.Zero) ? null : new FieldDefn(cPtr, false, ThisOwn_false()); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public FieldDefn GetFieldDefn(int i) { IntPtr cPtr = OgrPINVOKE.FeatureDefn_GetFieldDefn(swigCPtr, i); FieldDefn ret = (cPtr == IntPtr.Zero) ? null : new FieldDefn(cPtr, false, ThisOwn_false()); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static HandleRef getCPtrAndSetReference(FieldDefn obj, object parent) { if (obj != null) { obj.swigParentRef = parent; return(obj.swigCPtr); } else { return(new HandleRef(null, IntPtr.Zero)); } }
public static HandleRef getCPtrAndDisown(FieldDefn obj, object parent) { if (obj != null) { obj.swigCMemOwn = false; obj.swigParentRef = parent; return(obj.swigCPtr); } else { return(new HandleRef(null, IntPtr.Zero)); } }
public static HandleRef getCPtr(FieldDefn obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }