[gdal-dev] gdal_rasterize expected behaviour

Hugues François hugues.francois at inrae.fr
Mon Mar 8 05:50:24 PST 2021


Hello, 

I don't know exactly where I should ask this question and I wasn't able to find the answer when searching on the internet (maybe I didn't use the right keywords). 

I have to rasterize a vector layer, made of polygons, which resolution is finer than the destination raster I have to use so that I want to use the "all_touched" option. But since my the raster resolution is coarser than the vector one, it may happens sometimes that a single pixel is touched by several polygons (and sometime none of them encompass the pixel center point). In this case, how does the value burned to the raster is chosen among the candidates? 

Best regards, 
Hug

-- 

Hugues François [ mailto:prenom.nom at inrae.fr ] 

IR - Administrateur de la BD Stations / StationoScope 

http://www.observatoire-stations.fr 

UR LESSEM 

+33 4 76 76 27 44 

+33 6 77 66 21 31


More information about the gdal-dev mailing list