Comments (4)
Is it possible that you have imported an older dataset before where the road wasn't under construction? If so, it could be that you have an old version of the bfmap file that is used by the matcher instead of the new map version from the database. If you just delete that file, the matcher will read the new data from the database and the road should be ignored if it's under construction.
EDIT: I just tried myself and the mentioned road (http://www.openstreetmap.org/way/408473772#map=13/-30.6873/152.9470) is not included in the roadmap even with the standard road types configuration. Let me know if it's still not working for you. Note that roads for map matching are (split into segments) in the database table "bfmap_ways" while all the osm ways of the area are included in the "ways" table which is just the standard dataset that is imported with osmosis.
from barefoot.
Hi again, sorry for the delay in responding.
The road is brand new (so it was never not under construction) and I only downloaded the data about 6 weeks ago, but to see if it was merely an error in the old data I removed and purged the docker container and then created it again with a new geofabrik extract.
But unfortunately I've come across a new error which has prevented me from seeing if the new extract worked. Since I'm concerned with the roads, my processing script takes the road id and converts it back into a gid (by subtracting one if odd, and dividing by two), and then matches it against a a list of gids and osm_ids I exported from the the docker container using psql (ie \copy (select gid, osm_id from bfmap_ways) to gids.csv with csv
). This worked perfectly with the prior extract, but when I try to match this time the process is awry. Matches are clearly wrong, but also a large number of the gids calculated from the ids barefoot returned are larger than any gid in the table exported from the docker container. For instance, with one vehicle barefoot returns 1916 distinct road ids (including imputed ones on the routes) that transform into 1488 distinct gids, of which 472 are higher than 2203202, which is the length of the table exported from the database.
I'm not sure how this can happen, or why it is only happening now. The only changes are a new extract, with new table export, and updating barefoot to the latest version whilst preserving the changes I made to return road ids.
--edit--
On a whim I tried the old table I exported and the merge worked - even though the export from the bfmap_ways table in the container I had used for the matching (at least thought I was doing the matching) was not, and even though the old container was purged. I'm bewildered but next week I'll try to sort out this to make sure I'm matching on the actual current data.
Thanks for your patience on this!
from barefoot.
Having successfully cleared out caches etc I have concluded this is was a data issue (mainly inconsistencies between different forms of the data and a misshapen shapefile) and the import script was working correctly.
Feel free to close this, and thankyou dearly for your time nonetheless
For the record, barefoot was matching to this osm_id http://www.openstreetmap.org/way/345717453 which is clearly not under construction, but in prior data which was the basis for my shapefiles this osm_id was associated with the entire in construction bit.
from barefoot.
Glad to hear that it worked out. Thanks, anytime again!
from barefoot.
Related Issues (20)
- Proximity of road segments ids after map-matching HOT 2
- Docker build failing with osmosis installation HOT 1
- reach of map HOT 3
- Unable to save the output while using the barefoot for offline map matching in scalable manner HOT 10
- Road switch to early. HOT 5
- email validation bug: preventing contact-us submission and access to bmwfs
- Docker build fails at gradlew assemble HOT 3
- Can Matcher be cached?
- Issue downloading gradle during installation. HOT 2
- Spark: matcher response time too long as barefoot servers(stand-alone)
- Can we use any road network with geometry instead of OSM? HOT 2
- Question: Add administrative boundaries to matcher response
- Unable to build maven project
- Unable to build matcher server
- question about online map match
- help!Have you realized it? Please help me deploy the source code for payment
- HMM Break no emssion state
- How to match multi-trajection and save the matching result?
- Possible mistake in path.cost()
- Matching Behaviour is incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barefoot.