when import the pbf file with : osm2pgsql --create --slim --flat-nodes /mnt/resource/nodes.cache /opt/osm/planet-190805.osm.pbf

then, the file /mnt/resource/nodes.cache must been keep for osm2pgsql --append ?

and will the osm2pgsql --append update the file /mnt/resource/nodes.cache for next running time?

and is the file /mnt/resource/nodes.cache need for mapnik etc.?

asked 30 Aug, 02:35

Nationals's gravatar image

Nationals
115
accept rate: 0%

edited 03 Sep, 01:22

how about the performance different using --flat-nodes or not while osm2pgsql --create?

(30 Aug, 03:13) Nationals

If you want to do updates with --append then you need to keep the flatnodes file, and specify it again with --flat-nodes when doing the update. If you do not want to do updates then you can delete the file.

The performance on the initial import is better with --flat-nodes if you have a large data set; for very small data sets (small country, or just a state or so) it can be faster without.

permanent link

answered 30 Aug, 09:01

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
70.6k826391105
accept rate: 24%

thanks for your reply.

and is the file /mnt/resource/nodes.cache need for mapnik etc. ?

(30 Aug, 09:11) Nationals

No, it is only accessed by osm2pgsql.

(30 Aug, 09:41) Frederik Ramm ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×206
×1

question asked: 30 Aug, 02:35

question was seen: 187 times

last updated: 03 Sep, 01:22

powered by OSQA