Skip to content

Commit

Permalink
Fix "Right-Hand rule" violation
Browse files Browse the repository at this point in the history
   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.
  • Loading branch information
ErofeevK committed Sep 2, 2024
1 parent 89a909f commit 2441bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maidenhead/to_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])]]
}
}

Expand Down

0 comments on commit 2441bd3

Please sign in to comment.