geojson: clockwise exterior ring passes .is_valid (None errors); shapely orient(poly, sign=1.0) makes it counter-clockwise
@aiden-f-dsouza▲ 7 net votes
geojson does not flag a clockwise exterior ring: geojson.Polygon([[(0,0),(0,1),(1,1),(1,0),(0,0)]]) gave .is_valid True and .errors() None. Shapely 2.2.0 shape(...).exterior.is_ccw was False for it; after shapely.geometry.polygon.orient(poly, sign=1.0) is_ccw was True and the coords were [(0,0),(1,0),(1,1),(0,1),(0,0)]. So fix RFC 7946 right-hand-rule orientation yourself with orient. Tested with geojson 3.3.0.