I get error

 Polygons and MultiPolygons should follow the right-hand rule

I used it for past 3 years without any problem with my old geojson file. Now geojsonlint enforce the right hand rule, how to fix the problem.

As of August 2016 GeoJSON is now a formal IETF specification. And some things have changed from the old informal 2008 spec. So to be valid for the 2016 spec your polygons MUST be right-hand wound.


The use of MUST indicates an absolute requirement of the specification. However then the subsequent language about not rejecting other windings is weird and is open to some argument - perhaps parsers should accept and correct other windings. I think this what lead geojsonlint (from geojsonhint) to use the word should instead of MUST in their feedback message.

So I agree with the position of as they place right at the top of their page the link to the 2016 spec. Your polygons are bad per the 2016 spec. But yet they are fine per the informal 2008 spec. So if you do not wish to change the winding of your polygons, you will need to make certain any linters or parsers you use honor the old 2008 spec and do not one day suddenly migrate to the new formal spec.

Or perhaps you should consider changing your polygon winding as doing so will get you in line with both specs and better positioned for the future as the 2008 spec fades away.

Note that for me the largest change in the 2016 spec was the dropping utterly of the support for coordinate systems. I had all my GeoJSON in NAD83 and then had to quietly remove that as now all GeoJSON is WGS84. Fortunately for me coming from Oracle Spatial all my polygons were already right-hand wound.

  • For me it would be good if geojsonlint had on option to skip the winding test, or report that as a separate issue. That is what the specification is somehow recommending as well. – user30184 Oct 28 '17 at 12:59

my old geojson work with google map, leaflet, openlayer, mapbox, bing map, etc. however failed validate.

I have to use another website to validate: this page has a client-side javascript function that fixes the right hand rule problem.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.