How to define output path in GDAL batch file

المشرف العام

Administrator
طاقم الإدارة
I am trying to create batch process to output indextiles from a folder (and subforders) containing TIF files. But I want the output shapefiles to go in a separate folder. My symple attempt:

set INDIR=X:\raster\ mkdir OUTDIR=%INDIR%\tiles cd /d %INDIR% for /R %%i in (*.tif) do gdaltindex %OUTDIR%\%%~ni_tile.shp %%i

But somehow the the variable path %OUTDIR%doesen't work (note:the batch works with absolute path). Any suggestion on how to correctly set path variable in batch FOR cycle?



أكثر...
 
أعلى