-
Notifications
You must be signed in to change notification settings - Fork 333
Closed
Description
Hello,
I have my pbf file loaded into nominatim. I extracted the entries for photon into a json file as follows:
java -jar photon.jar -nominatim-import -extra-tags ALL -host localhost -port 5432 -database nominatim -user nominatim -password password -json photon.json && gzip photon.json
I checked that the resulting file does contain the extra tags:
# zcat photon.json.gz | grep extra | head
{"type":"Place","content":[{"place_id":317420,"object_type":"W","object_id":233138627,"categories":["osm.place.islet"],"rank_address":0,"importance":0.1333433333333333,"name":{"name":"Île Marguerite"},"extra":{"survey:date":"07/02/2007"},"centroid":[141.3781156413658,-66.78827175],"bbox":[141.3769155,-66.7875672,141.3792967,-66.7889463]}]}
{"type":"Place","content":[{"place_id":317148,"object_type":"W","object_id":233138744,"categories":["osm.place.islet"],"rank_address":0,"importance":0.1333433333333333,"name":{"name":"Île Curie"},"extra":{"survey:date":"07/02/2007"},"centroid":[140.04214554756481,-66.6442665],"bbox":[140.0402396,-66.6434839,140.0447432,-66.6449062]}]}
{"type":"Place","content":[{"place_id":317408,"object_type":"W","object_id":233135107,"categories":["osm.place.islet"],"rank_address":0,"importance":0.1333433333333333,"name":{"name":"Île Lattanzi"},"extra":{"survey:date":"07/02/2007"},"centroid":[139.95994216210897,-66.65320955000001],"bbox":[139.9583792,-66.6519952,139.9608684,-66.6542789]}]}
{"type":"Place","content":[{"place_id":317179,"object_type":"W","object_id":233135106,"categories":["osm.place.islet"],"rank_address":0,"importance":0.1333433333333333,"name":{"name":"Îlot des Hydrographes"},"extra":{"survey:date":"07/02/2007"},"centroid":[139.9971133823899,-66.6704738],"bbox":[139.9962708,-66.6700533,139.998037,-66.6709346]}]}
...
I import that file into opensearch like this:
if [ -f /data/photon.json.gz ]; then
echo "Importing /data/photon.json.gz"
zcat /data/photon.json.gz | java -jar photon.jar \
-nominatim-import -extra-tags ALL \
-transport-addresses 'opensearch:9200' \
-import-file -
echo "Import done"
else
echo "Nothing to import."
fi
It does import the data into opensearch, but no extra tags present. Here is a link to the opensearch dashboard:
And a screenshot showing some data, and again, no extra tags:

Since the import command line is simple enough, I don't see how I might've messed it up, but I could've.
Digging in the code, I spotted this line which looks wrong, but I don't think it affects my issue (or maybe it does).
| public boolean isExtraTagsSet() { return this.extraTags == null; } |
Any help is appreciated. Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels