I'm trying to reproject, move from tab to shp and rename all the .tab contained in a folder tree using ogr2ogr.
I'm working with Windows 7, QGIS 1.8 installed with advanced OsGeo4w and gdal 1.9.2. I have no experience in batch.
Here's the code :
for /R %%f IN ('D:\3.BATCH\FAUNE\*.tab') do C:\Users\Samy\Desktop\SIGMA\15.webmapping\ms4w\tools\gdal-ogr\ogr2ogr.exe -s_srs EPSG:3727 -t_srs EPSG:2975 %%f "ESRI Shapefile" %%f_2975.shp %%f pause
By calling this .bat into the cmd line, nothing append. When I simplify the code, I have in the best case "Unable to open" as Nik posted in the 3rd ressource below.
I wrote this code with the following questions:
According to resource 1, I translate the -f "MapInfo File" "%~dpnf.tab" "%f" into %%f "ESRI Shapefile" %%f_2975.shp %%f because as it is shape, I can't use dpnf.
According to resource 2, I wrote -s_srs EPSG:3727 -t_srs EPSG:2975 to reproject.
Finally I checked that the "Hide extensions for known file types" was off, according to ressource 3.
I don't know what to do now. There seems to be so many different ways to write this one line of code that I'm kind of disappointed.
Please help !