4 # sudo -u tileupdate import-planet osmfile.osm.pbf
5 # sudo -u tileupdate import-planet --cache 50000 osmfile.osm.pbf
6 # This script sets the appropriate Lua and style paths for the osm2pgsql import
10 export LUA_PATH='/srv/vector.openstreetmap.org/osm2pgsql-themepark/lua/?.lua;;'
11 export PGAPPNAME='import-planet'
13 # Import the osm2pgsql file specified as an argument, using the locations for spirit
16 --style '/srv/vector.openstreetmap.org/spirit/shortbread.lua' \
18 <%= @node_store_options %> \
22 # Set up replication. This doesn't specify the replication server, so it will use planet.osm.org on extracts
23 osm2pgsql-replication init \
25 --server '<%= node[:vectortile][:replication][:url] %>'