public virtual bool TransDataSource(string dstFilePath, IGdalRead gdalRead) { if (null == gdalRead) { return(false); } if (null == gdalRead.Driver) { return(false); } try { OSGeo.OGR.DataSource ds = gdalRead.Driver.CopyDataSource(this._DataSource, dstFilePath, null); if (ds == null) { return(false); } ds.FlushCache(); ds.Dispose(); } catch (NullReferenceException e) { return(false); } return(true); }