Git Product home page Git Product logo

Comments (5)

zod avatar zod commented on September 22, 2024 3

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.

noname09051989 avatar noname09051989 commented on September 22, 2024

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.

afischerdev avatar afischerdev commented on September 22, 2024

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.

MarekSven avatar MarekSven commented on September 22, 2024

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.

MarekSven avatar MarekSven commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.