Exemple #1
0
        public bool SetIndexingVariable(MDArray array)
        {
            bool ret = GdalPINVOKE.Dimension_SetIndexingVariable(swigCPtr, MDArray.getCPtr(array));

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #2
0
        public MDArray ResolveMDArray(string name, string starting_point, string[] options)
        {
            IntPtr  cPtr = GdalPINVOKE.Group_ResolveMDArray(swigCPtr, name, starting_point, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
            MDArray ret  = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #3
0
        public MDArray GetMask(string[] options)
        {
            IntPtr  cPtr = GdalPINVOKE.MDArray_GetMask(swigCPtr, (options != null)? new GdalPINVOKE.StringListMarshal(options)._ar : null);
            MDArray ret  = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #4
0
        public MDArray GetIndexingVariable()
        {
            IntPtr  cPtr = GdalPINVOKE.Dimension_GetIndexingVariable(swigCPtr);
            MDArray ret  = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #5
0
        public MDArray GetUnscaled()
        {
            IntPtr  cPtr = GdalPINVOKE.MDArray_GetUnscaled(swigCPtr);
            MDArray ret  = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #6
0
        public MDArray Transpose(int nList, int[] pList)
        {
            IntPtr  cPtr = GdalPINVOKE.MDArray_Transpose(swigCPtr, nList, pList);
            MDArray ret  = (cPtr == IntPtr.Zero) ? null : new MDArray(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Exemple #7
0
 public static HandleRef getCPtrAndSetReference(MDArray obj, object parent)
 {
     if (obj != null)
     {
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
Exemple #8
0
 public static HandleRef getCPtrAndDisown(MDArray 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 static HandleRef getCPtr(MDArray obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }