Bug fix lat/lon order

This commit is contained in:
Edward Betts 2021-06-28 11:48:02 +02:00
parent 08684fd9c4
commit 1fc822c152
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def make_envelope(bounds):
def get_bbox_centroid(bbox):
bbox = make_envelope(bbox)
centroid = database.session.query(func.ST_AsText(func.ST_Centroid(bbox))).scalar()
return re_point.match(centroid).groups()
return reversed(re_point.match(centroid).groups())
def get_part_of(thing, bbox):