public void SetSubType(FieldSubType type) { OgrPINVOKE.FieldDefn_SetSubType(swigCPtr, (int)type); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } }
internal static string GetExportName(string fieldName, out FieldSubType subType) { if (fieldName[0] == '#') { subType = FieldSubType.ContentList; return(fieldName.Substring(1)); } subType = FieldSubType.General; return(fieldName); }
public static string GetFieldSubTypeName(FieldSubType type) { string ret = OgrPINVOKE.GetFieldSubTypeName((int)type); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public FieldSubType GetSubType() { FieldSubType ret = (FieldSubType)OgrPINVOKE.FieldDefn_GetSubType(swigCPtr); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static string ParseImportName(string importName, FieldSubType subType) { switch (subType) { case FieldSubType.General: return(importName); case FieldSubType.ContentList: return(importName.Insert(0, "#")); default: throw new SnNotSupportedException("FieldSubType '" + subType + "' is not supported."); } }
public void SetSubType(FieldSubType type) { OgrPINVOKE.FieldDefn_SetSubType(swigCPtr, (int)type); if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve(); }
public static FieldDomain CreateGlobFieldDomain(string name, string description, FieldType type, FieldSubType subtype, string glob) { IntPtr cPtr = OgrPINVOKE.CreateGlobFieldDomain(name, description, (int)type, (int)subtype, glob); FieldDomain ret = (cPtr == IntPtr.Zero) ? null : new FieldDomain(cPtr, true, ThisOwn_true()); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static FieldDomain CreateRangeFieldDomain(string name, string description, FieldType type, FieldSubType subtype, double min, bool minIsInclusive, double max, double maxIsInclusive) { IntPtr cPtr = OgrPINVOKE.CreateRangeFieldDomain(name, description, (int)type, (int)subtype, min, minIsInclusive, max, maxIsInclusive); FieldDomain ret = (cPtr == IntPtr.Zero) ? null : new FieldDomain(cPtr, true, ThisOwn_true()); if (OgrPINVOKE.SWIGPendingException.Pending) { throw OgrPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static string GetFieldSubTypeName(FieldSubType type) { string ret = OgrPINVOKE.GetFieldSubTypeName((int)type); if (OgrPINVOKE.SWIGPendingException.Pending) throw OgrPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static string ParseImportName(string importName, FieldSubType subType) { switch (subType) { case FieldSubType.General: return importName; case FieldSubType.ContentList: return importName.Insert(0, "#"); default: throw new NotImplementedException("FieldSubType '" + subType +"' is not implemented"); } }
internal static string GetExportName(string fieldName, out FieldSubType subType) { if (fieldName[0] == '#') { subType = FieldSubType.ContentList; return fieldName.Substring(1); } subType = FieldSubType.General; return fieldName; }