Replies: 2 comments 1 reply
-
For data import and updates Nominatim uses osm2pgsql. osm2pgsql is a generic tool used by many OSM based projects. Nominatim's configuration is in the By default OSM data is written to the tables To recreate the file you'd need to run an import again with the same OSM input data into a new database. Then you could delete the database and copy the file. Folks in the osm2pgsql projects are more expert in this topic. Afaik no other user asked about missing flatnode file, usually users start a new import from scratch.
It has to match the database (the |
Beta Was this translation helpful? Give feedback.
-
The flatnode file must match exactly the data in the database or you will get very subtle errors. That means you can only copy the file from another server, if exactly the same import data was used and no updates have been run in the meantime. A database loaded with a flatnode file also has a slightly different structure. I can't recommend adding it after the fact, even if there was a non-hacky way to produce one. Note that you can duplicate a Nominatim installation by stopping updates, making a full DB dump, restoring the dump on the other machine, copying the flatnode file over, setting up the Nominatim configuration to point to the restored data and flatnode file and running |
Beta Was this translation helpful? Give feedback.
-
I installed Nominatim several times at this point. As a learning experience to bail myself out when things go wrong.
In one instance I forgot to specify using a flat node file. The question is, is there a way of generating the flatnode file post installation?
And as a followup question, can I use the flatnode file from a previous installation by copying it to the appropriate location on a current installation?
Beta Was this translation helpful? Give feedback.
All reactions