[gdal-dev] Make gdal_polygonize to support the mask band

Even Rouault even.rouault at spatialys.com
Sun Nov 6 07:53:29 PST 2016


Le vendredi 04 novembre 2016 18:00:10, Rahkonen Jukka (MML) a écrit :
> Hi,
> 
> Once again someone wants to get the footprints of valid data in images
> http://gis.stackexchange.com/questions/216624/creating-a-shapefile-for-foo
> tprint-of-tasters-valid-data-areas-with-gdal.
> 
> A year ago, in here
> https://lists.osgeo.org/pipermail/gdal-dev/2015-October/042859.html Even
> suggested to create a mask-only image with
> gdal_translate in.tif mask.tif -b mask
> and then polygonize that into vectors with gdal_polygonize.
> 
> I wonder how hard it would be to make gdal_polygonize to find the mask band
> directly and recognize it with "-b mask" just like gdal_translate does.

Not that hard. I just added support for that.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list