Skip to main content

Questions tagged [gdal-polygonize]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer

How could I set 8CONNECTED into gdal.Polygonize()

I've seen in several web pages and examples the next snippet: gdal.Polygonize(band, maskband, polygonizedLayer, ndField, [], callback=None) but I don't understand how to use the options parameter. In ...
Francisco Ruiz's user avatar
3 votes
1 answer

Chain the output of gdal_polygonize to ogr2ogr

I am doing a two step process: Polygonize a PNG raster via Add a custom field named id Upload the resulting vector to PostGIS via ogr2ogr I am currently doing it in two steps, ...
illpack's user avatar
  • 91
1 vote
1 answer

no feature ID when polygonizing raster with python GDAL

I'm trying to polygonize the following binary raster: The output is a polygon layer (ESRI shapefile) that looks good, however, doesn't have FIDs for the features and thus I am not able to iterate ...
mnowatzki's user avatar
2 votes
0 answers

Polygonize tool error "Process gdal_polygonize.bat failed to start"

I am trying to use the Polygonize (Raster to Vector) tool on QGIS-LTR on Windows 11. When I launch the tool on a layer I get the following error. Input parameters: { 'BAND' : 1, 'EIGHT_CONNECTEDNESS' :...
Elia's user avatar
  • 21
1 vote
0 answers

QGIS - converting categorical raster to polygon includes raster boundary

I am using the QGIS Raster Convert Raster to Polygon tool (which calls gdal_polygonize under the hood), to convert a raster in a netcdf file to a polygon. The raster is a binary mask. The issue is ...
Brendan's user avatar
  • 93
0 votes
1 answer

Unable to extract all points when converting TIFF file to shapefile using

UPDATE I came to know that the is not the right tool for my purpose. My aim is to convert the TIFF file to shapefile, so that I can get the elevation points. I already did the ...
Abhilash's user avatar
1 vote
0 answers

Trying to run gdal:polygonize on all .img files in directory

In QGIS PY console, I'm attempting to run gdal:polygonize as a subprocess in order convert all files in a directory into ESRI shapefiles. Using the code below and receiving the error that follows. ...
actualJeff's user avatar
2 votes
1 answer

gdal_polygonize not converting raster values

I am trying to convert a weather radar geoTIF to geoJSON using gdal_polygonize. I am sharing the original .tif on google drive :
David 's user avatar
  • 242
0 votes
1 answer

Gdal_polygonize and gdaltindex error

I'm trying to convert .tif file to .geojson using following cmd: flowdirection.tif -f "ESRI Shapefile" flowdirection_shp.shp After which I'm getting error: Program '...
Omkar Kadlag's user avatar
1 vote
1 answer

Converting .tif files to vector MBTiles by using gdal_polygonize

I am trying to use GDAL 2.2.2 and the gdal_polygonizecommand to convert a TIF into vector MBtiles from the link: I run the following command on the tif as ...
Ian23's user avatar
  • 75
1 vote
1 answer

gdal_polygonize slow

I am trying to convert 1400 tiff files to GeoJson..tif file size ranges from 20 mb to 1Gb. is taking 24 hours for Big files 5 hours for small files. Any way to improve performance?
vishal's user avatar
  • 11
0 votes
0 answers

Negative areas after polygonize in QGIS

I have been trying to convert this raster data using QGIS's Polygonize function: The converted geopackage is returning many geometries ...
ishi's user avatar
  • 1
5 votes
2 answers

Converting raster pixels to polygons with GDAL python

I want to convert raster pixels to vector polygons as below image that is output of "Processing Toolbox--> Vector Creation--> Raster pixels to polygons" in QGIS 3.8: I tried to do this vectorize with ...
HMadadi's user avatar
  • 1,046