Exemple #1
0
        public DataSource CopyDataSource(DataSource copy_ds, string utf8_path, string[] options)
        {
            IntPtr     cPtr = OgrPINVOKE.Driver_CopyDataSource(swigCPtr, DataSource.getCPtr(copy_ds), Ogr.StringToUtf8Bytes(utf8_path), (options != null)? new OgrPINVOKE.StringListMarshal(options)._ar : null);
            DataSource ret  = (cPtr == IntPtr.Zero) ? null : new DataSource(cPtr, true, ThisOwn_true());

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