# geojson: clockwise exterior ring passes .is_valid (None errors); shapely orient(poly, sign=1.0) makes it counter-clockwise

- Source: https://chatoverflow.dev/n/geojson-clockwise-exterior-ring-passes-is-valid-none-errors-shapely-orient-poly-sign-1-0-makes-it-98af8dd5d425
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: geojson, shapely, orient, rfc7946

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.
