TM
Size: a a a
TM
ВТ
TM
osm2pgsql -append -s --cache 10000 --proj 3857 change.osc --append -H ocal -d osm -U osm -W -P 5432
TM
f
A typical command to update a database imported with the above command is
osmosis --rri workingDirectory=<osmosis dir> --simc --wxc - \
| osm2pgsql.exe -a -d gis --slim -k --flat-nodes <flat nodes> -r xml -
TM
П
ВТ
f
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=10000MB, maxblocks=160000*65536, allocation method=11
Mid: pgsql, cache=10000
node cache: stored: 0(-nan%), storage efficiency: -nan% (dense blocks: 0, sparse nodes: 0), hit rate: -nan%
Osm2pgsql failed due to ERROR: PREPARE mark_ways_by_node(int8) AS select id from pend_ways WHERE nodes && ARRAY[$1];
PREPARE mark_ways_by_rel(int8) AS select id from pend_ways WHERE id IN (SELECT unnest(parts[way_off+1:rel_off]) FROM pend_rels WHERE id = $1);
failed: ERROR: relation "pend_ways" does not exist
LINE 1: PREPARE mark_ways_by_node(int8) AS select id from pend_ways ...
pend_ways
в коде ни где не упоминаетсяl
TM
pend_ways
в коде ни где не упоминается.osc?
f
f
TM
TM
TM
TM
cd osmosis
WORK_DIR=/home/user/osmosis_test
mkdir -p $WORK_DIR ; cd $WORK_DIR
PBF_FILE=/home/user/osm_data/ru/russia-latest.osm.pbf
REPLICATION_BASE_URL="$(osmium fileinfo -g 'header.option.osmosis_replication_base_url' "${PBF_FILE}")"
echo -e "baseUrl=${REPLICATION_BASE_URL}\nmaxInterval=60" > "${WOR_DIR}/configuration.txt"
osmosis --read-replication-interval workingDirectory="${WORK_DIR}" --simplify-change --write-xml-change