[gdal-dev] Standardization of Bounding Box structure

Roberto Ribeiro robertofig85 at gmail.com
Thu Nov 23 10:43:54 PST 2017


In OGR, the GetGeometry() method from the Geometry class returns a bounding
box in the (xmin, xmax, ymin, ymax) structure. However, the
SetSpatialFilterRect() method from the Layer class expects a bounding box
in the (xmin, ymin, xmax, ymax) structure. This is a problem that can be
worked around, but it does generate confusion. Any reason why this couldn't
be standardized?

Also, on a similar note, having SetSpatialFilterRect expect an array of
coordinates, instead of coordinates as individual arguements, seems more
logical to me, as it's how every other GIS package returns bounding box
info afaik, including OGR's GetGeometry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171123/c70bcf51/attachment.html>


More information about the gdal-dev mailing list