Skip to content

Commit

Permalink
use TransverseMercator to determine center
Browse files Browse the repository at this point in the history
Handles longitudes -180 to 180 and 0 to 360.
  • Loading branch information
pymonger committed Sep 28, 2018
1 parent 4cd83a4 commit ecb003a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grq2/lib/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_center(bbox):
"""

poly = Polygon(bbox)
src_proj = ccrs.PlateCarree()
src_proj = ccrs.TransverseMercator()
tgt_proj = src_proj
for point in bbox:
if point[0] == -180. or point[0] == 180.:
Expand Down

0 comments on commit ecb003a

Please sign in to comment.