예제 #1
0
파일: Driver.cs 프로젝트: ataoge/GdalCore
        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);
        }