-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add validity rules for polygons in locations.geojson #476
Conversation
b132a26
to
076e8b8
Compare
+1 I don't even think this should be a vote. |
076e8b8
to
34bfd38
Compare
34bfd38
to
bcc1062
Compare
(Copying my Slack comments here)
I was not previously familiar with the OpenGIS Simple Features Specification, but it seems to account for everything we need (including valid multipolygons). I encourage interested parties to do a more thorough review of that document before casting a vote for due diligence's sake. I'll be particularly looking for any cases where it would impose unwanted restrictions excluding use cases we've actually encountered (unlikely, but again, due diligence 🙂). |
👍 You can start your due diligence in the GeoJSON RFC which refers to this spec in its introduction and says it implements its data model. It's also the data model for the very popular software packages PostGIS and Java Topology Suite (JTS). It's where names like Linestring, Polygon, MultiPolygon come from. |
Thanks @leonardehrenfried for working on that and coming with some great reference. 🎉 Looks great on my side! |
Do we need anymore discussion on this proposal? Should a vote be opened? |
A vote can be opened but I'm currently on holiday. @tzujenchanmbd @eliasmbd Could you be so kind and start the formalities of the voting process? |
As per request of @leonardehrenfried, I open the vote for this proposal The vote requirements are as follow:
The voting period ends on Wednesday, September 11, 2024 at 23:59:59 UTC. Happy voting! |
+1 Trillium |
+1 Caltrans |
+1 Transit |
@miles-grant-ibigroup @LeoFrachet You indicated approval before the voting started but would you be so kind as to give your unambiguous +1? |
With pleasure! +1 from Spare. |
+1 Arcadis |
+1 Podaris |
The voting period has ended on Wednesday, September 11, 2024 at 23:59:59 UTC. The result is: @leonardehrenfried Congratulations the vote has passed with 6 votes for and 0 against. |
Problem
When you have self-intersecting polygons in locations.geojson, there can be situations where routing engines cannot decide if a point is inside or outside of it:
Yesterday I asked in Slack about validity rules of flex polygons and received positive responses about tightening them.
For this reason, I'm opening this PR to gather more feedback and eventually call a vote.
Rather than spelling out all the ways in which polygons can be invalid or just mentioning self-intersecting ones, I opted instead to reference another standard that has been battle hardened and has a very good description of of validity rules for polygons.
cc @miles-grant-ibigroup @m-mcqueen @LeoFrachet