maps-docker-compose icon indicating copy to clipboard operation
maps-docker-compose copied to clipboard

Nominatim Import Style?

Open sjahns opened this issue 3 years ago • 2 comments

How can I change the nominatim import style? I don't want the default (full) import.

see: https://nominatim.org/release-docs/latest/admin/Import/#filtering-imported-data

I tried adding the NOMINATIM_IMPORT_STYLE env but that doesn't work.

Thanks!

sjahns avatar Feb 24 '22 00:02 sjahns

Hey,

it's been a long time since I've looked at openstreetmaps. if adding it to osm.env doesn't work, you could try adding something like

export NOMINATIM_IMPORT_STYLE="blah"

to osm-config.sh

chesty avatar Feb 24 '22 07:02 chesty

Thanks but sadly that doesn't work.

I tried to add export NOMINATIM_IMPORT_STYLE="admin" at the top of the osm-config.sh

and I also tried with adding it like the other env variables

: ${NOMINATIM_IMPORT_STYLE:="admin"}
export NOMINATIM_IMPORT_STYLE

I am already using a server that runs this setup but I want to reinit the db with a different import style

this is how I can start a nominatim server only with the configuration that I want

docker run -it --rm \
  -e PBF_URL=https://download.geofabrik.de/europe/germany/niedersachsen-latest.osm.pbf \
  -e REPLICATION_URL=https://download.geofabrik.de/europe/germany/niedersachsen-updates \
  -e IMPORT_STYLE=admin \
  -p 8080:8080 \
  --name nominatim \
  mediagis/nominatim:4.0

Do I have to add the NOMINATIM_IMPORT_STYLE env in the other repo? (chesty/nominatim-docker) I'm not too familiar with nominatim and I'm unsure where exactly that env must be. In the other repo in the nominatim-docker-entrypoint.sh:192 is the setup call with the osm file. Is that where the env has to be?

I'm kinda poking in the dark here

sjahns avatar Feb 24 '22 11:02 sjahns