Commit 490cc6b3 authored by inactivist's avatar inactivist
Browse files

Fixing BoundingBox.corner() - was returning incorrect data.

parent 94dd8cd7
......@@ -338,19 +338,23 @@ class BoundingBox(Model):
def origin(self):
"""
Return longitude, latitude of northwest corner of bounding box, as
tuple. This assumes that bounding box is always a rectangle, which
Return longitude, latitude of southwest (bottom, left) corner of
bounding box, as a tuple.
This assumes that bounding box is always a rectangle, which
appears to be the case at present.
"""
return tuple(self.coordinates[0][0])
def corner(self):
"""
Return longitude, latitude of southeast corner of bounding box, as
tuple. This assumes that bounding box is always a rectangle, which
Return longitude, latitude of northeast (top, right) corner of
bounding box, as a tuple.
This assumes that bounding box is always a rectangle, which
appears to be the case at present.
"""
return tuple(self.coordinates[0][1])
return tuple(self.coordinates[0][2])
class Place(Model):
......
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