From ecb003a0e34f9153c8afe45b34b1718b014b7895 Mon Sep 17 00:00:00 2001 From: Gerald Manipon Date: Fri, 28 Sep 2018 19:58:08 +0000 Subject: [PATCH] use TransverseMercator to determine center Handles longitudes -180 to 180 and 0 to 360. --- grq2/lib/geo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grq2/lib/geo.py b/grq2/lib/geo.py index 6bfe97b..08bf517 100644 --- a/grq2/lib/geo.py +++ b/grq2/lib/geo.py @@ -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.: