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

Reply via email to