Commit 89deb914 authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Modified get_bbox method of GdalRasterData to ensure xmin < xmax and ymin <...

Modified get_bbox method of GdalRasterData to ensure xmin < xmax and ymin < ymax, regardless of positive or negative dx/dy.

git-svn-id: https://svn.seismo.oma.be/svn/seismo/mapping/layeredbasemap/trunk@7566 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent 33eeb4be
......@@ -948,7 +948,12 @@ class GdalRasterData(MeshGridData):
return (self._x0, self._y0, self._x1, self._y1)
def get_bbox(self):
return (self.x0, self.y0, self.x1, self.y1)
"""
Get bounding box (xmin, ymin, xmax, ymax)
Note: depending on sign of :prop:`dx` and :prop:`dy`, order may be
different from bbox returned by :meth:`get_native_bbox` !
"""
return (self.xmin, self.ymin, self.xmax, self.ymax)
def adjust_bbox(self, bbox):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment