Open ambrusadrianz opened 4 years ago
Hi @ambrusadrianz, you should have a database called street.db
within the interpolation
subdirectory of your data dir.
Could you please query the database for the IDs 480661 and 480353 from the polyline
table.
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 .0sv
or .polylines
, the IDs are simply the line numbers in the file.
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 316 m
apart!?
> 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.
Are you sure it's not these two disjoined streets with the same name? (the highlighted one is 'qurxoBi`xcb@pQ_^')
These are the two points from your original report:
Please provide more information.
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 grep -ni Dalagatan /path/to/polylines.0sv
return?
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 :innocent:
pelias.github.io/compare
Here's what I got :scream_cat:
Here's what I was expecting :sparkles:
I was expecting the Dalagatan street to be merged by polylines into a single polygon.
Here's what I think could be improved :trophy:
Is this a polylines issue? Or there is some problem with the underlying OpenStreetMap data?