Beispiel #1
0
        public bool Equals(ExtendedDataType other)
        {
            bool ret = GdalPINVOKE.ExtendedDataType_Equals(swigCPtr, ExtendedDataType.getCPtr(other));

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #2
0
        public static EDTComponent Create(string name, uint offset, ExtendedDataType type)
        {
            IntPtr       cPtr = GdalPINVOKE.EDTComponent_Create(name, offset, ExtendedDataType.getCPtr(type));
            EDTComponent ret  = (cPtr == IntPtr.Zero) ? null : new EDTComponent(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #3
0
        public Attribute CreateAttribute(string name, int nDimensions, SWIGTYPE_p_GUIntBig dimensions, ExtendedDataType data_type, string[] options)
        {
            IntPtr    cPtr = GdalPINVOKE.Group_CreateAttribute(swigCPtr, name, nDimensions, SWIGTYPE_p_GUIntBig.getCPtr(dimensions), ExtendedDataType.getCPtr(data_type), (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
            Attribute ret  = (cPtr == IntPtr.Zero) ? null : new Attribute(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }