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

Hello all,

Trying to setup a local nominatim server with north america dataset. I will be using this server to normalize some adress stating strings and get full adress (especially city,state,country) data. I have limited disk space and installation got cancelled because of lack of space on disk. So, I'm looking for ways to reduce size. I used --no-updates tag also. Appreciate any suggestions.

asked 28 Apr '23, 11:45

Gorkemsanal's gravatar image

Gorkemsanal
11112
accept rate: 0%


There aren't many changes you can to, it's just a lot of data. Nominatim imports everything into 3 database tables first (or 2 tables plus the flatnode file), then convert everything into the final search tables. With --no-updates the 3 tables get deleted but during the index stage they're needed and consume most.

Use the flatnode file https://nominatim.org/release-docs/latest/admin/Import/#flatnode-files

Maybe import USA only https://download.geofabrik.de/north-america.html and then https://nominatim.org/release-docs/latest/admin/Advanced-Installations/ how to add Mexico and Canada later. That could also work if you import one US state after the other but I'm not sure how streets crossing state borders are treated.

permanent link

answered 28 Apr '23, 12:26

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Thank you, I've created a flatnode file right now installation goes on. However, "Processing: Node(1682145k 654.3k/s) Way(53345k 0.29k/s) Relation(0 0.0/s)" as you can see "Way" has this speed is it too slow or normal?

(30 Apr '23, 17:53) Gorkemsanal

That seems slow but I know nothing about the hardware you use. The database tuning parameter will have an effect https://nominatim.org/release-docs/latest/admin/Installation/#tuning-the-postgresql-database but so does raw processor speed and how fast the discs are.

(01 May '23, 20:00) mtmail

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:

×689
×61
×1

question asked: 28 Apr '23, 11:45

question was seen: 1,581 times

last updated: 01 May '23, 20:00

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