[gdal-dev] gdal_rasterize problem with polygons containing polygons

Ognjen antonijevic.ognjen at gmail.com
Thu Jul 28 04:12:16 PDT 2016


Hi everyone,

I tried to create a raster mask from a .gml file with polygons (polygons
represent cloud coverage of a satellite image).
So I used gdal_rasterize with -i flag (because i want to cut out the clouds
from the image). The problem is that polygon layer contains polygons which
are inside one another, so gdal_rasterize is not working properly in this
case.
The first two images illustrate the vector layer, and the third is the
output raster. Can anyone help me to bypass this problem?
<http://osgeo-org.1560.x6.nabble.com/file/n5278563/1.png> 
<http://osgeo-org.1560.x6.nabble.com/file/n5278563/2.png> 
<http://osgeo-org.1560.x6.nabble.com/file/n5278563/3.png> 

Thanks, Ognjen



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-rasterize-problem-with-polygons-containing-polygons-tp5278563.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list