chesty / maps-docker-compose

Full OpenStreetMap environment with tiles, osrm and nominatim
Apache License 2.0
17 stars 14 forks source link

Nominatim Import Style? #7

Open sjahns opened 2 years ago

sjahns commented 2 years ago

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!

chesty commented 2 years ago

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

sjahns commented 2 years ago

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