NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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 '19, 02:35

Nationals's gravatar image

Nationals
11446
accept rate: 0%

edited 03 Sep '19, 01:22

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

(30 Aug '19, 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 '19, 09:01

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

thanks for your reply.

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

(30 Aug '19, 09:11) Nationals

No, it is only accessed by osm2pgsql.

(30 Aug '19, 09:41) Frederik Ramm ♦

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:

×263
×1

question asked: 30 Aug '19, 02:35

question was seen: 3,113 times

last updated: 03 Sep '19, 01:22

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum