rainflame / geopolygonize

Convert geographic rasters into simplified polygons
https://rainflame.github.io/geopolygonize/
1 stars 0 forks source link

Fill in nodata pixels #61

Closed cbroms closed 9 months ago

cbroms commented 10 months ago

Some pixels are marked as nodata and should be filled in with the average of the pixels around them, like what happens in the blobbification step. Otherwise there will be polygons in the output that don't represent anything (such as border regions, or areas that have been prefiltered out).

You can determine which pixel values are nodata by reading src.nodata after opening the raster with rasterio. This will likely be something like 0, -1, or 9999. Pixels with those values should then be optionally filled in by the tool.

slz4025 commented 9 months ago

Addressed by #69