This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How do I find the “path-to-osmosis”

0

https://wiki.openstreetmap.org/wiki/Osmosis/PostGIS_Setup says

psql -d osm -f <path-to-osmosis>/package/script/pgsimple_schema_0.6.sql

I am on Ubuntu. osmosis runs from /usr/bin/osmosis but this is not the path where the scripts reside. Where can I find them?

asked 04 May '14, 19:23

snupo's gravatar image

snupo
966611
accept rate: 0%

edited 16 May '14, 18:43


One Answer:

3

sudo find / -name pgsimple_schema_0.6.sql -print

naturally only works if the file in question is actually present on your system

answered 04 May '14, 19:59

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 04 May '14, 20:00

... or, on a system which supports "locate", as modern Ubuntu versions do by default:

locate pgsimple_schema_0.6.sql

The database that it uses is updated by an "updatedb" process that usually runs from cron once a day. You can run it manually as root if you want to.

(08 May '14, 20:57) SomeoneElse ♦

Source code available on GitHub .