-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Street polygon duplicate #244
Comments
Hi @ambrusadrianz, you should have a database called Could you please query the database for the IDs 480661 and 480353 from the That will help me understand better why they weren't joined. |
It doesn't seem to contain any of the ids. Should I try to prepare the data again? |
Ok so another way is to get the data directly from the polylines file which was used at import time. It will be in your data dir and likely end with |
Found the issue, since I have only a Sweden import, the ids are not the same as in the global pelias index. (duh) The two polylines are:
|
Hmm.. something weird is going on, my calculations of the polylines show them as ~50km apart. However, the two results you posted are only > var p = require('@mapbox/polyline');
undefined
> p.toGeoJSON('qmjqpBux~na@~m@j{@~HxPjB`OnAnZ', 6)
{ type: 'LineString',
coordinates:
[ [ 18.087835, 59.545321 ],
[ 18.086869, 59.544569 ],
[ 18.086584, 59.544409 ],
[ 18.086327, 59.544355 ],
[ 18.085887, 59.544315 ] ] }
> p.toGeoJSON('qurxoBi`xcb@pQ_^', 6)
{ type: 'LineString',
coordinates: [ [ 18.428437, 59.139945 ], [ 18.428933, 59.139648 ] ] } |
So I suspect that it is correct to consider them disjoined but the centroids appear to be incorrect. |
I did a reimport of the swedish data, something seems to be off. The polygon ids don't seem to refer to the correct polyline entries. They're much further away than the position of the pelias location. Do you have any suggestion? What am I doing wrong? Tried with the sqlite database and the plain polylines extract as well. |
The IDs should map to line numbers in the file, maybe you're looking at the lines either one before or one after the target line? |
Also worth noting that the point Pelias provides for a street is 50% along the linestring at its midpoint. |
What does |
Hey team!
I was using your awesome geocoding engine when I noticed something interesting.
Let me tell you more about it.
Here's what I did 😇
pelias.github.io/compare
Here's what I got 🙀
Here's what I was expecting ✨
I was expecting the Dalagatan street to be merged by polylines into a single polygon.
Here's what I think could be improved 🏆
Is this a polylines issue? Or there is some problem with the underlying OpenStreetMap data?
The text was updated successfully, but these errors were encountered: