B
B
beduin012017-03-27 12:43:10
OpenStreetMap
beduin01, 2017-03-27 12:43:10

OpenStreetMap: why is the last.state.txt file needed?

Let's say I want to make a complete copy of the OSM data and load it into PostgreSQL.
I use the `imposm3` utility.
The launch parameters are as follows:
`imposm3 run -config /apps/imposm/config.json` The
config is as follows:

{
    "cachedir": "/home/osmdata/diff/",
    "connection": "postgis://postgres:[email protected]:5432/geodb?sslmode=disable&prefix=NONE",
    "mapping": "/apps/imposm/mymap.json",
    "srid": 4326
}

The question is, what should be in the `last.state.txt` file?
Swears:
`[diff] unable to read last.state.txtstat /home/osmdata/diff/last.state.txt: no such file or directory`

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Myvrenik, 2017-03-27
@gim0

Haven't used imposm3, but it's clear from their tutorial.rst that it uses the last.state.txt file to store the last change in the cache so it only downloads new files next time. It must create this file on its own when the command is called imposm3 import.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question