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 Tinos |
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. answered 09 Jun '15, 17:09 Yury Tinos |