<div dir="ltr"><div>Hi Hug,</div><div><br></div><div>GDALRasterizeGeometries takes an array of geometries and iterates over them from start to end, burning them into the raster one at a time. With a strictly ordered vector layer, you can expect the later shapes to be burned over the earlier ones.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 8, 2021 at 7:00 AM Hugues François <<a href="mailto:hugues.francois@inrae.fr">hugues.francois@inrae.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello, <br>
<br>
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). <br>
<br>
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? <br>
<br>
Best regards, <br>
Hug<br><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Sean Gillies</div></div></div>