codeforgermany / click_that_hood

A game where users must identify a city's neighborhoods as fast as possible
http://click-that-hood.com
MIT License
446 stars 638 forks source link

Fix orientation of bad-belzig.geojson #342

Closed sebkur closed 2 years ago

sebkur commented 2 years ago

Tested this locally and works as expected now.

Used https://github.com/bjornharrtell/jts2geojson for reading this into JTS, then used Geometry#normalize() to fix the orientation and wrote back to GeoJSON using jts2geojson. It uses a different property order for serialization, not sure if you care about that.

fnogatz commented 2 years ago

Thank you, @sebkur, for the requested change!

It uses a different property order for serialization, not sure if you care about that.

Currently, we don't perform any normalization on the GeoJSON data (even the missing newline at the very end won't trigger the formatting checker on npm test).

btw, there's no need to force-push. I would have just squashed your commits when merging anyway :innocent:

fnogatz commented 2 years ago

Merged and online: https://click-that-hood.com/?bad-belzig :partying_face: Thank you again, @sebkur!