Skip to content

Commit

Permalink
Mirror bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
k4m454k committed Dec 9, 2020
1 parent f8ae322 commit a4ecccf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion map_poster_creator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = 0.6
__version__ = 0.7
__author__ = "Vadim Apenko"
__author_email__ = "[email protected]"
__telegram__ = "@k4m454k"
4 changes: 2 additions & 2 deletions map_poster_creator/geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def get_polygon_from_geojson(geojson_path: str) -> Polygon:

def get_map_geometry_from_poly(poly: Polygon) -> MapGeometry:
x1, y1, x2, y2 = poly.bounds
top = min(y1, y2)
bottom = max(y1, y2)
top = max(y1, y2)
bottom = min(y1, y2)
left = min(x1, x2)
right = max(x1, x2)
center = [(top + bottom) / 2, (left + right) / 2]
Expand Down

0 comments on commit a4ecccf

Please sign in to comment.