You are not logged in.
- Topics: Active | Unanswered
Announcement
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2020-07-27 16:58:04
- clive-s
- New Member
- Registered: 2020-07-27
- Posts: 1
Node cache size is too small to fit all nodes
Greetings,
I am trying to import britain.osm
I used:
osm2pgsql --password E:\data_dir\DATA\OSM\great-britain-latest.osm.pbf -d britain_osm -U postgres -P 5432 -S default.style --hstore
I enter the password, then get an error:
Processing: Node(48590k 4049.2k/s) Way(0k 0.00k/s) Relation(0 0.00/s)
Node cache size is too small to fit all nodes. Please increase cache size
Could anyone please share where to increase the Node cache size for PostGIS??
Any assistance appreciated.
Regards,
Clive
Offline
#2 2020-07-28 09:09:52
- Spiekerooger
- Member
- Registered: 2019-07-09
- Posts: 89
Re: Node cache size is too small to fit all nodes
Hi Clive,
for import, osm2pgsql has to either keep all the nodes in memory or use a flatnode file.
As you are not using the flatnode option, you seem to be running out of memory. So you either have to increase the memory of your machine or use the flatnode option - I would recommend the latter.
Offline