omniscale/imposm3

Damage last.state.txt on import

frodrigo opened this issue · 0 comments

When using extract from OSM-FR, providing minutely update, the import process damage the contente of the last.state.txt when recompute the sequenceNumber

Use an extract from OSM-FR
http://download.openstreetmap.fr/extracts/europe/monaco.osm.pbf
Plus state file
http://download.openstreetmap.fr/extracts/europe/monaco.state.txt

#Tue May 19 06:47:44 CEST 2020
sequenceNumber=4027232
timestamp=2020-05-19T04\:46\:02Z

Config file

{
  "replication_interval": "1m",
  "replication_url": "http://download.openstreetmap.fr/replication/europe/monaco/minute/"
}

Run the lastest imposm on import

imposm import -mapping mapping.yaml -connection postgis://localhost/fred -overwritecache -diffdir . -cachedir cache -read monaco-latest.osm.pbf  -deployproduction -write -diff -config imposm-config.json

At the end of the import process, the state file content is

timestamp=0001-01-01T00\:00\:00Z
sequenceNumber=-149693692
replicationUrl=http://download.openstreetmap.fr/replication/europe/monaco/minute/

The timestamp and sequenceNumber are invalid.

Note, the run to update database does not damage the state file.