[gdal-dev] Re: gdal_rasterize -tr and -te

Hermann Peifer peifer at gmx.eu
Mon Oct 4 14:44:05 EDT 2010


  On 04/10/2010 19:43, Even Rouault wrote:
> Le lundi 04 octobre 2010 17:01:14, Hermann Peifer a écrit :
>>> * do you want to round/ceil/floor ? or so that the adjusted extent
>>> includes the exact extent ? or so that the adjusted extent is contained
>>> inside the exact extent ?
>> The adjusted extend includes the exact extent.
>>
> Hum, the example you gave in the first email seems to show the contrary:
>
> Original extent:
>
> Upper Left  ( 4923406.374, 3088693.597)
> Lower Right ( 4994261.374, 3010723.597)
>
> Wished extent:
>
> Upper Left  ( 4923500, 3088600)
> Lower Right ( 4994200, 3010800)
>
> Unless I'm wrong, the rounded/adjusted bounding box is included within the
> original/exact extent.

Hmm. I vaguely remember that I was thinking twice before giving the 
example, but obviously, this was not enough.

So the wished extent for a tr of 100 should indeed better read:

Upper Left ( 4923400, 3088700)
Lower Right ( 4994300, 3010700)

Sorry, Hermann


More information about the gdal-dev mailing list