Thursday, 11 May 2017

qgis - How to reproject all the vector files in a folder to a particular projection using ogr2ogr?


We have a folder with all sorts of vector files like tab,shp,dxf. Many of the files are in different projection. I would like to convert all the files to EPSG: 4326 and eventually the non-shapefiles to shapefiles.


I've used the following command


For %%f in ("*.shp",".tab",".dxf") do ogr2ogr -t_SRS EPSG:4326 "ESRI Shapefile" "%~dpnf.shp" "%%f"


It say's.."Failure COuldn't fetch requested layer".


And how to save the output files in a separate folder, not in the same folder itself


Edit:



I've attached the image of the error


enter image description here




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...