Skip to content
Prev 27752 / 29559 Next

issue with readOGR

On Sat, 9 Nov 2019, Abdoulaye Sarr wrote:

            
an appropriate driver (it needs a *.vrt to say which columns are which, 
see https://gdal.org/drivers/vector/csv.html). Valid layers should be 
"dhaka" and "dhaka_gazipur", but not "dhaka_div", for which  only the 
*.shx is shown.

Try ogrListLayers(path.expand("/Volumes/DS2S/R_QGIS_codes//Data")) to try 
to detect valid layers. If you really meant "indicators", use 
paste0("CSV:", file.path(path.expand("/Volumes/DS2S/R_QGIS_codes//Data"), 
"indicators.csv")) as per the GDAL vector driver help page.

Roger