I'm trying to convert .tif file to .geojson using following cmd:
gdal_polygonize.py flowdirection.tif -f "ESRI Shapefile" flowdirection_shp.shp
After which I'm getting error:
Program 'gdal_polygonize.py' failed to run: Application not foundAt line:1 char:1
+ gdal_polygonize.py flowdirection.tif -f “ESRI Shapefile” flowdirectio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ gdal_polygonize.py flowdirection.tif -f “ESRI Shapefile” flowdirectio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
After that I just gave the same cmd but using -q :
gdal_polygonize.py -q flowdirection.tif -f "ESRI Shapefile" flowdirection_shp.shp
Still
Program 'gdal_polygonize.py' failed to run: Application not foundAt line:1 char:1
+ gdal_polygonize.py -q flowdirection.tif -f "ESRI Shapefile" flowdirec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ gdal_polygonize.py -q flowdirection.tif -f "ESRI Shapefile" flowdirec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
All other Gdal cmds are working but it seems some problem with gdal_polygonize. Also I tried gdaltindex , but it gave me some error:
gdaltindex flowdirection_shp.shp doq/*flowdirection.tif
Creating new index file...
ERROR 4: doq/*flowdirection.tif: No such file or directory
ERROR 4: doq/*flowdirection.tif: No such file or directory
Unable to open doq/*flowdirection.tif, skipping.