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

Hello.

I'm trying to do a numeration address system for my Nominatim, since my country doenst have TIGER and the most commons numeration methods available.

The system works fine, but when I include it in a plugins/ folder on Nominatim, he stops generating xml files with nodes from a PBF file. Everything works with in the command line. Only stops in the search.php request.

The output says it works: Jun 08, 2015 12:40:21 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis Version 0.43.1 Jun 08, 2015 12:40:21 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Preparing pipeline. Jun 08, 2015 12:40:22 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Launching pipeline execution. Jun 08, 2015 12:40:22 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline executing, waiting for completion. Jun 08, 2015 12:40:26 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline complete. Jun 08, 2015 12:40:26 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Total execution time: 4935 milliseconds.

The command I use is:

$cmd = CONST_Osmosis_Binary . " --read-pbf-fast " . PBFFILE . " --way-key keyList=name --way-key-value keyValueList=\"name." . trim($address[0]) . "\" --tag-filter reject-relations --used-node --write-xml " . DATA . "/data.xml 2>&1";

$output = shell_exec($cmd);

where PBFFILE is the absolute path to my pbf and DATA is the folder inside my plugin, also absolute and $address[0] is the streetname string.

I'm using apache as my server, on ubuntu 14.04, and all the folders and files are with the same permissions. (I've changed the default apache server user and group)

I know that this might be a apache or php problem, but i preferred to ask in here since i could receive a more specific awnser due to this be OSM projects.

Thank you very much.

asked 08 Jun '15, 16:59

Yury%20Tinos's gravatar image

Yury Tinos
36112
accept rate: 100%

edited 09 Jun '15, 17:09


Resolved!!!!

My PHP was UTF-8, but the command line execution functions where in ANSI, so just had to add LANG=\"en_US.UTF8\" in front of my command and it worked.

permanent link

answered 09 Jun '15, 17:09

Yury%20Tinos's gravatar image

Yury Tinos
36112
accept rate: 100%

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
×252
×60
×34
×20

question asked: 08 Jun '15, 16:59

question was seen: 3,792 times

last updated: 09 Jun '15, 17:09

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