Re: [gdal-dev] Getting actual path to a layer

2019-06-11 Thread Even Rouault
On lundi 10 juin 2019 22:47:11 CEST David Strip wrote: > The docs say that the return value of GetName() > should be sufficient to open the data source if passed to the same > OGRSFDriver that this data source was opened with, but it need not be > exactly the same string that was used to open the d

Re: [gdal-dev] Getting actual path to a layer

2019-06-10 Thread David Strip
The docs say that the return value of GetName() should be sufficient to open the data source if passed to the same OGRSFDriver that this data source was opened with, but it need not be exactly the same string that was used to open the data source. Looking

[gdal-dev] Getting actual path to a layer

2019-06-10 Thread Nyall Dawson
Hi list, If I have a bunch of say shapefiles in a folder, OGR is happy to let me access these as a dataset, e.g. da = r"/home/nyall/dev/QGIS/tests/testdata" driver = ogr.GetDriverByName('ESRI Shapefile') dataSource = driver.Open(da, 0) for i in dataSource: print(i.GetName()) My question is