[gdal-dev] Extent of a Layer
Ari Jolma
ari.jolma at gmail.com
Tue Jun 30 03:22:47 PDT 2015
On 30.06.2015 13:19, Even Rouault wrote:
> Le mardi 30 juin 2015 12:10:39, Ari Jolma a écrit :
>> I wonder when the GetExtent method of a layer started to return an
>> Envelope - at least in the Perl bindings.
>>
>> I'm quite certain that previously GetExtent method of Layer returned
>> (Xmin,Ymin,Xmax,Ymax) and GetEnvelope of Geometry returned
>> (Xmin,Xmax,Ymin,Ymax). Now they both return (Xmin,Xmax,Ymin,Ymax).
>>
>> I've always noted the difference in the Perl bindings documentation and
>> I have code that expects GetExtent to return (Xmin,Ymin,Xmax,Ymax).
> AFAIK OGR_L_GetExtent() has always returned a OGREnvelope, so the order should
> have always been (Xmin,Xmax,Ymin,Ymax), unless something reordered it in the
> Perl bindings.
I don't see that happening. Hm. It's scary to see that kind of bug
appearing for years and even asserted.
Ari
>
>> However, I don't find any change like this happening in the repository.
>> Strange.
>>
>> Ari
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list