From 2441bd37b088d0eef18bebdf4871da8a109d27e1 Mon Sep 17 00:00:00 2001 From: Kirill Erofeev Date: Tue, 3 Sep 2024 02:56:09 +0700 Subject: [PATCH] Fix "Right-Hand rule" violation o A linear ring MUST follow the right-hand rule with respect to the area it bounds, i.e., exterior rings are counterclockwise, and holes are clockwise. --- src/maidenhead/to_location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maidenhead/to_location.py b/src/maidenhead/to_location.py index 5efd7af..3df3266 100644 --- a/src/maidenhead/to_location.py +++ b/src/maidenhead/to_location.py @@ -99,7 +99,7 @@ def to_geoJSONObject(maiden: str, center: bool = True, square: bool = True) -> d "properties": {"QTHLocator": maiden}, "geometry": { "type": "Polygon", - "coordinates": [[(loc1[1], loc1[0]), (loc1[1], loc2[0]), (loc2[1], loc2[0]), (loc2[1], loc1[0]), (loc1[1], loc1[0])]] + "coordinates": [[(loc1[1], loc1[0]), (loc2[1], loc1[0]), (loc2[1], loc2[0]), (loc1[1], loc2[0]), (loc1[1], loc1[0])]] } }