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
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to