Comments (5)
For a first creation of segment data you can leave out the traffic estimations to get you started. @mjaschen also created a docker image which simplifies the creation of segment data.
I already have some ideas how we could simplify the creation and will create a PR soon.
from brouter.
I am facing the same issue and just stumbled across this issue.
I tried to run the process_pbf_planet.sh directly in Ubuntu OS. Creating the fatJar worked fine. However, when running the segment creation process no segment files are generated.
Looking forward for a short feedback. :)
from brouter.
Please use only the short form;
...
JDBC="jdbc:postgresql://localhost/osm?user=postgres&password=xyz&ssl=false"
${JAVA} -cp ../postgresql-42.6.0.jar:../brouter.jar -Ddeletetmpfiles=true -DuseDenseMaps=true btools.mapcreator.OsmFastCutter ../lookups.dat nodetiles waytiles nodes55 waytiles55 bordernids.dat relations.dat restrictions.dat ../all.brf ../trekking.brf ../softaccess.brf ../planet-new.osm.pbf $(JDBC)
rm ../planet-latest.osm.pbf
mv ../planet-new.osm.pbf ../planet-latest.osm.pbf
mkdir unodes55
${JAVA} -cp ../brouter.jar -Ddeletetmpfiles=true -DuseDenseMaps=true btools.mapcreator.PosUnifier nodes55 unodes55 bordernids.dat bordernodes.dat /srtm3_bef
mkdir segments
${JAVA} -cp ../brouter.jar -DuseDenseMaps=true -DskipEncodingCheck=true btools.mapcreator.WayLinker unodes55 waytiles55 bordernodes.dat restrictions.dat ../lookups.dat ../all.brf segments rd5
...
The traffic is now done via the database generator, please see here and database generation
And yes, we need an update for the documention and the script.
from brouter.
Thank you for your reply. I am trying to continue based on the information on https://github.com/abrensch/brouter/blob/master/misc/scripts/mapcreation/readme_database.md.
As someone who has never used postgres on Linux, I would like to know what kind of command-line tool is "postgres".
There seems to be just "psql".
Typing "postgres" in bash fails, no matter what user I log in (sudo su) as.
Ok, so assumed it is just a typo.
I managed to create the "osm" db, granted access to it for my user "developer" in pgAdmin, launched the "import to database and create" command and got:
postgres@debian11:/home/developer/Dev/github/brouter/misc/scripts/mapcreation$ osm2pgsql -c -s -d osm -U developer -W -H localhost -P 5432 -O flex -S brouter_cfg.lua /home/developer/brouter/germany-latest.osm.pbf
2024-04-26 12:02:29 osm2pgsql version 1.4.1
Password:
2024-04-26 12:02:35 Database version: 13.14 (Debian 13.14-0+deb11u1)
2024-04-26 12:02:35 PostGIS version: 3.1
2024-04-26 12:02:35 Node-cache: cache=800MB, maxblocks=12800*65536, allocation method=11
2024-04-26 12:02:35 node cache: stored: 83244(100.00%), storage efficiency: 47.69% (dense blocks: 1, sparse nodes: 83181), hit rate: 0.00%
2024-04-26 12:02:35 ERROR: Failed to execute Lua function 'osm2pgsql.process_node': brouter_cfg.lua:121: unknown field 'as_point'
stack traceback:
[C]: in function 'error'
[string "..."]:178: in metamethod '__index'
brouter_cfg.lua:121: in function <brouter_cfg.lua:112>.
from brouter.
Ok, due to this: https://stackoverflow.com/questions/75687110/lua-config-throwing-error-in-metamethods , it seems a version 1.6.0 of osm2pgsql is required.
from brouter.
Related Issues (20)
- Question / Proposal: Possible to send turn-by-turn instructions via BLE? [Android] HOT 2
- Download segments CertPathValidatorException HOT 4
- Intermediate nodes on a route break the Data table's Time and Energy values HOT 1
- Car route should not begin/end on a motorway HOT 8
- Add the trigger type to the suspect manager list
- Wrongly reporting restriction:bicycle as bad-tr
- Support for node-tags in lookups.dat HOT 8
- "bicycle:backward=no" is not considered HOT 1
- Distinguish between villages/towns and country HOT 11
- Problem building from Dockerfile HOT 4
- Brouter Java error HOT 7
- The least cost route is not being used HOT 3
- Make timestamp format in server log to ISO8601 compatible HOT 1
- RFC: Improvement to Logging HOT 3
- Using segment cost instead of distance when processing bicycle kinematic model. HOT 22
- Success message on routing HOT 4
- bug with brouter.damsy HOT 1
- Cycling overlay doesn't work HOT 4
- Problem with communication between BRouter lib 1.7.5 and BRouter-web
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 brouter.