[OGR] 操作-拷贝
拷贝ndatasource层次的拷贝nfrom osgeo import ogrnimport os,mathninshp = “C:\tmp\test.shp”nds = ogr.Open(inshp)ndriver = ogr.GetDriverByName(“ESRI Shapefile”)noutputfile = ‘C:\tmp\test_copy.shp’nif os.access( …
拷贝ndatasource层次的拷贝nfrom osgeo import ogrnimport os,mathninshp = “C:\tmp\test.shp”nds = ogr.Open(inshp)ndriver = ogr.GetDriverByName(“ESRI Shapefile”)noutputfile = ‘C:\tmp\test_copy.shp’nif os.access( …