tmcw / geojson.net

https://www.placemark.io/
ISC License
150 stars 32 forks source link

If all errors are just messages, update the geojson on the map #49

Closed jgimbel closed 5 years ago

jgimbel commented 5 years ago

I keep getting "Polygons must follow the right hand rule" error. This error is of level 'message' and the geojson is still valid for many tools. To solve this, I moved our error test so that as long as all of the error's levels are 'message', we still update the map with the geojson.

Example GeoJSON

{"type": "FeatureCollection", "features": [
  {
    "type": "Feature",
    "properties": {},
    "geometry":{"type":"Polygon","coordinates":[[[-79.425562,43.700993],[-79.42314,43.701508],[-79.422092,43.701737],[-79.42089,43.702],[-79.419884,43.702186],[-79.419109,43.702352],[-79.418328,43.702522],[-79.418104,43.702572],[-79.417379,43.70272],[-79.417093,43.702782],[-79.415962,43.703029],[-79.415504,43.703119],[-79.414946,43.703244],[-79.414394,43.703356],[-79.413884,43.703473],[-79.413232,43.703612],[-79.412075,43.703845],[-79.411646,43.703939],[-79.410958,43.704083],[-79.410806,43.703705],[-79.410258,43.702343],[-79.409862,43.701317],[-79.409398,43.700162],[-79.409372,43.700077],[-79.409361,43.700024],[-79.409371,43.699972],[-79.409428,43.69991],[-79.409137,43.699258],[-79.408708,43.69911],[-79.407777,43.698787],[-79.40667,43.698398],[-79.406066,43.698192],[-79.405883,43.69818],[-79.405612,43.69748],[-79.405413,43.696952],[-79.405281,43.696553],[-79.405052,43.695978],[-79.404674,43.69502],[-79.403507,43.69526],[-79.403094,43.695349],[-79.402404,43.695495],[-79.402373,43.695112],[-79.402323,43.694892],[-79.402191,43.694575],[-79.401895,43.693727],[-79.401589,43.692923],[-79.401285,43.692098],[-79.401129,43.691756],[-79.401046,43.691647],[-79.400869,43.691198],[-79.401475,43.69106],[-79.401586,43.691076],[-79.401695,43.69104],[-79.401758,43.691019],[-79.401858,43.690989],[-79.403018,43.690782],[-79.404899,43.690396],[-79.406403,43.690081],[-79.407954,43.689785],[-79.409516,43.689437],[-79.409491,43.689342],[-79.412132,43.688783],[-79.41218,43.688773],[-79.412669,43.688669],[-79.412643,43.688517],[-79.412631,43.688433],[-79.412626,43.688339],[-79.412602,43.688203],[-79.412575,43.688103],[-79.412445,43.687769],[-79.41231,43.687431],[-79.412273,43.687341],[-79.412822,43.687229],[-79.412602,43.686686],[-79.411896,43.684942],[-79.412464,43.684829],[-79.413469,43.684625],[-79.413409,43.68447],[-79.41352,43.684446],[-79.415427,43.684066],[-79.418296,43.683494],[-79.418409,43.683786],[-79.418541,43.683758],[-79.419236,43.68541],[-79.419414,43.685886],[-79.419618,43.686371],[-79.419964,43.687208],[-79.420302,43.688089],[-79.42073,43.689141],[-79.421228,43.690376],[-79.421265,43.690468],[-79.421391,43.690782],[-79.4216,43.691293],[-79.421687,43.691508],[-79.421874,43.691935],[-79.422326,43.693058],[-79.422583,43.693712],[-79.422747,43.694104],[-79.42324,43.695294],[-79.423334,43.695503],[-79.423577,43.696108],[-79.424045,43.697271],[-79.424342,43.697946],[-79.424766,43.699023],[-79.425241,43.700217],[-79.425406,43.700617],[-79.425562,43.700993]]]}
  }
]}
vercel[bot] commented 5 years ago

This pull request is automatically deployed with Now. To access deployments, click Details below or on the icon next to each push.