Skip to main content

Timeline for How to apply GDAL polygonize?

Current License: CC BY-SA 4.0

12 events
when toggle format what by license comment
Jan 4 at 15:29 answer added Bert Coerver timeline score: 3
Nov 27, 2021 at 7:59 vote accept Stücke
Nov 27, 2021 at 4:59 answer added Ben W timeline score: 7
Nov 26, 2021 at 14:31 review Close votes
Nov 29, 2021 at 13:05
Nov 26, 2021 at 14:12 comment added Stücke I can open it but the raster band has not been transferred correctly. I guess this is a new issue. Therefore, I will close this question and open a new issue.
Nov 26, 2021 at 14:04 comment added nmtoken If you get a shapefile after you run your gdal.Polygonize code, then isn't your problem now an issue not with gdal.Polygonize but with opening that file. Does the shapefile open in a GIS client like QGIS?
Nov 26, 2021 at 13:17 history edited Stücke CC BY-SA 4.0
added 98 characters in body
Nov 26, 2021 at 13:05 comment added Stücke Thank you both for your comments. I think I got a step further. I actually manage to create a shape file but it's still not fully working. I've adjusted my question.
Nov 26, 2021 at 13:01 history edited Stücke CC BY-SA 4.0
added 449 characters in body
Nov 26, 2021 at 12:02 comment added user2856 First, that doc is for the commandline application, not the gdal.Polygonize function. Second, you need to use GDAL to open the raster, GDAL doesn't understand rioxarray or rasterio objects. If you're using rioxarray/rasterio, try rasterio.features.dataset_features or rasterio.features.shapes rasterio.readthedocs.io/en/latest/api/rasterio.features.html
Nov 26, 2021 at 12:00 comment added Ben W Perhaps this example here will help: pcjericks.github.io/py-gdalogr-cookbook/…
Nov 26, 2021 at 11:33 history asked Stücke CC BY-SA 4.0