Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
     }
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 9
0
 public static HandleRef getCPtr(MDArray obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }