Open cdbax opened 4 years ago
Hi @cdbax! Thanks so much for putting this together!
I'm sorry this hasn't been addressed in so long. I've been slowly trying to resurrect this repo.
Your implementation mostly makes sense, but I'm curious: Have you used/are still using this fix in production? Or was this a theoretical change?
It was used in production at the time to address an active problem we had, and it worked. I'm no longer with that company now, so can't say if it's still being used.
I was very new to programming when I wrote this, so I will not be at all offended if you need to modify/improve it.
Thanks for reaching out after so long. It will be great to see this repo get some love again. It's a great resource.
It would be nice to see the polygon ring coordinates function correctly as the company I am working for has an upcoming feature that will use these polygon structures.
The shapefile specification (pg.8) has some concrete requirements for the order of vertices for polygon rings:
The geojson specification requires the opposite orientation:
This change ensures that rings will be defined in the correct orientation based on whether it is an internal or external ring.