[OSM-dev] ask Static Map
Hi All, What should i do if i want to install static map like http://staticmap.openstreetmap.de/ on myserver I just download it from sf.net but how to work with it ? Thanks -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Point osmand to own tile Server
Hi All, I have installed tile server ony my own server.You can access it on www.osmosa.net Now i want to build osmand and redirecting map to my own tile, that is www.osmosa.net How to get it ?where the code which i should change on osmand ? Thanks -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Updating own tile server
I fount http://www.hyperionreactor.net/blog/how … r-database But when i execute *./osmosis --read-replication-interval-init workingDirectory=/mnt/changesets/* i got error messages like bellow : *pr 12, 2012 1:18:05 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis Version 0.31 Apr 12, 2012 1:18:06 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Preparing pipeline. Apr 12, 2012 1:18:06 PM org.openstreetmap.osmosis.core.Osmosis main SEVERE: Execution aborted. org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task type read-replication-interval-init doesn't exist. at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactoryRegister.getInstance(TaskManagerFactoryRegister.java:60) at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:50) at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:112) at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:79) at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)* What;s wrong with it ? help me, please On Thu, Apr 12, 2012 at 10:26 AM, Anwar Azulfa an...@troyans.net wrote: Hi All, I want to update my Map on My Tile Server because i think every time map on OSM server being updated. Anyone could help me ? How to get it ? Is with update database only it's can solve ? Is there update script for it ? Thanks -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Updating own tile server
Hi All, I want to update my Map on My Tile Server because i think every time map on OSM server being updated. Anyone could help me ? How to get it ? Is with update database only it's can solve ? Is there update script for it ? Thanks -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] generate image failed
i have granted /var/run/renderd, my tile_dir to www-data but still error like that, 2012/2/3 Graham Jones grahamjones...@gmail.com It looks like www-data needs write permission on /var/run/renderd? Graham from my phone On 3 Feb 2012 07:37, Anwar Azulfa an...@troyans.net wrote: I have reconfigure mod_tile again, then when i try to restart apache2, renderd then execute renderd -f, image still not found this is pieces of output: Serif-Bold.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf Running in foreground mode... renderd[18198]: Starting stats thread renderd[18198]: Failed to open stats file: 2 renderd[18198]: Failed to open stats file: 2 renderd[18198]: Failed to open stats file: 2 renderd[18198]: Failed to open stats file: 2 renderd[18198]: ERROR: Failed repeatedly to write stats, giving up i have grant tiledir to www-data in order to can accessed by webserver. this is my /etc/renderd.onf *[renderd]* *;socketname=/var/run/renderd/renderd.sock* *num_threads=4* *tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET* *stats_file=/var/run/renderd/renderd.stats* * * *[mapnik]* *#plugins_dir=/usr/lib/mapnik/input* *plugins_dir=/usr/local/lib/mapnik2/input* *font_dir=/usr/share/fonts/truetype/ttf-dejavu* *font_dir_recurse=1* * * *[default]* *URI=/osm_tiles2/* *XML=/home/dewirobiatul/src/mapnik-style/osm.xml* *;HOST=localhost* what should i do to solve this ? 2012/2/3 Andre Joost andre+jo...@nurfuerspam.de Am 03.02.2012 04:13, schrieb Anwar Azulfa: ... -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] generate image failed
It's not working on me, what repository which i must add to install mapnik2 or libmapnik2 ? i hvae add repostiry apt-get install python-software-properties sudo apt-get install python-mapnik2 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python-mapnik2 Any idea to solve it ? 2012/2/2 Andre Joost andre+jo...@nurfuerspam.de Am 02.02.2012 07:32, schrieb Andre Joost: The osm.xml style file you used is made for mapnik 2 EDIT: You have to install that, unless you find the old Styles and python files for mapnik 0.7.1 somewhere. HTH, ajoessen __**_ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.**org/listinfo/devhttp://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] generate image failed
I check on /usr/lib/ ,obviously that there are libmapnik.0.7.so and libmapnk2.so Then i remove them and build mapnik2 again. Now i got no error when i try to import mapnik2 on pythn Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. import mapnik2 But my mad_tile still don't generate image on webserver. when i execute renderd -f on mod_tile inside, i got error message like bellow: renderd: error while loading shared libraries: libmapnik.so.2.0: cannot open shared object file: No such file or directory What is that, what should i do to solve it ? 2012/2/2 Andre Joost andre+jo...@nurfuerspam.de Am 02.02.2012 10:56, schrieb Anwar Azulfa: It's not working on me, what repository which i must add to install mapnik2 or libmapnik2 ? i hvae add repostiry apt-get install python-software-properties sudo apt-get install python-mapnik2 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package python-mapnik2 Any idea to solve it ? Sorry, I am only working on Windows with a pre-compiled binary. Have a look here: https://github.com/mapnik/**mapnik/wiki/Mapnik2https://github.com/mapnik/mapnik/wiki/Mapnik2 HTH, André joost __**_ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.**org/listinfo/devhttp://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] generate image failed
I have reconfigure mod_tile again, then when i try to restart apache2, renderd then execute renderd -f, image still not found this is pieces of output: Serif-Bold.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldItalic.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Oblique.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed-BoldItalic.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Italic.ttf renderd[18198]: DEBUG: Loading font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-BoldOblique.ttf Running in foreground mode... renderd[18198]: Starting stats thread renderd[18198]: Failed to open stats file: 2 renderd[18198]: Failed to open stats file: 2 renderd[18198]: Failed to open stats file: 2 renderd[18198]: Failed to open stats file: 2 renderd[18198]: ERROR: Failed repeatedly to write stats, giving up i have grant tiledir to www-data in order to can accessed by webserver. this is my /etc/renderd.onf *[renderd]* *;socketname=/var/run/renderd/renderd.sock* *num_threads=4* *tile_dir=/var/lib/mod_tile ; DOES NOT WORK YET* *stats_file=/var/run/renderd/renderd.stats* * * *[mapnik]* *#plugins_dir=/usr/lib/mapnik/input* *plugins_dir=/usr/local/lib/mapnik2/input* *font_dir=/usr/share/fonts/truetype/ttf-dejavu* *font_dir_recurse=1* * * *[default]* *URI=/osm_tiles2/* *XML=/home/dewirobiatul/src/mapnik-style/osm.xml* *;HOST=localhost* what should i do to solve this ? 2012/2/3 Andre Joost andre+jo...@nurfuerspam.de Am 03.02.2012 04:13, schrieb Anwar Azulfa: I check on /usr/lib/ ,obviously that there are libmapnik.0.7.so and libmapnk2.so Then i remove them and build mapnik2 again. Now i got no error when i try to import mapnik2 on pythn Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. import mapnik2 But my mad_tile still don't generate image on webserver. when i execute renderd -f on mod_tile inside, i got error message like bellow: renderd: error while loading shared libraries: libmapnik.so.2.0: cannot open shared object file: No such file or directory Sorry, I dont use renderd. Did you manage to get generate_img.py working? One thing I got stuck with: Mapnik 2.0.0 starts with try: import mapnik2 which was changed to import mapnik in Mapnik 2.0.1. Maybe renderd still uses the wrong directory? Greetings, André Joost __**_ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.**org/listinfo/devhttp://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] generate image failed
Hi All, I try to genenerate image with mapnik on my other server,But if's failed i got error message like : *$./generate_image.py * *Traceback (most recent call last):* * File ./generate_image.py, line 42, in module* *mapnik.load_map(m,mapfile)* *RuntimeError: Required attribute 'name' is missing in TextSymbolizer in style 'area-text'* My Mapnik version like when i try to execute : *apt-cache show libmapnik** * * *Package: libmapnik-dev* *Priority: optional* *Section: universe/libdevel* *Installed-Size: 748* *Maintainer: Ubuntu Developers ubuntu-devel-disc...@lists.ubuntu.com* *Original-Maintainer: Debian GIS Project pkg-grass-de...@lists.alioth.debian.org* *Architecture: i386* *Source: mapnik* *Version: 0.7.1-6* What's the error ? what should i do ? -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found
I have successfull in Nominatim Instlalation, Now i want to add search box on my main website on www.osmosa.net. How to get it ? it's use nominatim too, right ? I want to embed search box like on www.openstreetmap.org Any suggesions for step which i must do ? Thanks 2012/1/31 Anwar Azulfa an...@troyans.net OK, I got it from nominatim/lib/template/searchhtml.php Thnks All 2012/1/31 Anwar Azulfa an...@troyans.net Anyone know where is html template of nominatim index ? I want to modify html template of it Thnks 2012/1/30 Anwar Azulfa an...@troyans.net Thanks Sarah, Now my www.osmosa.net/search is works :) How about if i want to add input box (search box) on my main map, www.osmosa.net Because on www.osmosa.net there is no search box. How to do that ? Thanks 2012/1/30 Sarah Hoffmann lon...@denofr.de Hi Anwar, On Mon, Jan 30, 2012 at 10:58:47AM +0700, Anwar Azulfa wrote: Hi All, Long time no continue this project,i have follow instruction from http://open.mapquestapi.com/npi/ Now i have finished imported index file and generate web. But when i try to query, error happen.I don't know what's that but there is permission denied message. Let see on http://www.osmosa.net/search/search.php?q=jakartaviewbox=-140.89%2C64.68%2C-20.83%2C31.75 What should i do ? Two things: first of all, in settings/settings.php you need to adapt the base URL for your server. Find the line with CONST_Website_BaseURL and set it to http://www.osmosa.net/search/. Second, you need to make sure that your server redirects /search/search to /search/search.php. Sarah ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found
Thanks Sarah, Now my www.osmosa.net/search is works :) How about if i want to add input box (search box) on my main map, www.osmosa.net Because on www.osmosa.net there is no search box. How to do that ? Thanks 2012/1/30 Sarah Hoffmann lon...@denofr.de Hi Anwar, On Mon, Jan 30, 2012 at 10:58:47AM +0700, Anwar Azulfa wrote: Hi All, Long time no continue this project,i have follow instruction from http://open.mapquestapi.com/npi/ Now i have finished imported index file and generate web. But when i try to query, error happen.I don't know what's that but there is permission denied message. Let see on http://www.osmosa.net/search/search.php?q=jakartaviewbox=-140.89%2C64.68%2C-20.83%2C31.75 What should i do ? Two things: first of all, in settings/settings.php you need to adapt the base URL for your server. Find the line with CONST_Website_BaseURL and set it to http://www.osmosa.net/search/. Second, you need to make sure that your server redirects /search/search to /search/search.php. Sarah ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found
Anyone know where is html template of nominatim index ? I want to modify html template of it Thnks 2012/1/30 Anwar Azulfa an...@troyans.net Thanks Sarah, Now my www.osmosa.net/search is works :) How about if i want to add input box (search box) on my main map, www.osmosa.net Because on www.osmosa.net there is no search box. How to do that ? Thanks 2012/1/30 Sarah Hoffmann lon...@denofr.de Hi Anwar, On Mon, Jan 30, 2012 at 10:58:47AM +0700, Anwar Azulfa wrote: Hi All, Long time no continue this project,i have follow instruction from http://open.mapquestapi.com/npi/ Now i have finished imported index file and generate web. But when i try to query, error happen.I don't know what's that but there is permission denied message. Let see on http://www.osmosa.net/search/search.php?q=jakartaviewbox=-140.89%2C64.68%2C-20.83%2C31.75 What should i do ? Two things: first of all, in settings/settings.php you need to adapt the base URL for your server. Find the line with CONST_Website_BaseURL and set it to http://www.osmosa.net/search/. Second, you need to make sure that your server redirects /search/search to /search/search.php. Sarah ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found
OK, I got it from nominatim/lib/template/searchhtml.php Thnks All 2012/1/31 Anwar Azulfa an...@troyans.net Anyone know where is html template of nominatim index ? I want to modify html template of it Thnks 2012/1/30 Anwar Azulfa an...@troyans.net Thanks Sarah, Now my www.osmosa.net/search is works :) How about if i want to add input box (search box) on my main map, www.osmosa.net Because on www.osmosa.net there is no search box. How to do that ? Thanks 2012/1/30 Sarah Hoffmann lon...@denofr.de Hi Anwar, On Mon, Jan 30, 2012 at 10:58:47AM +0700, Anwar Azulfa wrote: Hi All, Long time no continue this project,i have follow instruction from http://open.mapquestapi.com/npi/ Now i have finished imported index file and generate web. But when i try to query, error happen.I don't know what's that but there is permission denied message. Let see on http://www.osmosa.net/search/search.php?q=jakartaviewbox=-140.89%2C64.68%2C-20.83%2C31.75 What should i do ? Two things: first of all, in settings/settings.php you need to adapt the base URL for your server. Find the line with CONST_Website_BaseURL and set it to http://www.osmosa.net/search/. Second, you need to make sure that your server redirects /search/search to /search/search.php. Sarah ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found
Hi All, Long time no continue this project,i have follow instruction from http://open.mapquestapi.com/npi/ Now i have finished imported index file and generate web. But when i try to query, error happen.I don't know what's that but there is permission denied message. Let see on http://www.osmosa.net/search/search.php?q=jakartaviewbox=-140.89%2C64.68%2C-20.83%2C31.75 What should i do ? 2011/12/22 Mike Dupont jamesmikedup...@googlemail.com Works for me . sudo apt-get install postgresql-9.1-postgis postgis createdb gazetteer createlang plpgsql gazetteer cat /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql | psql gazetteer cat /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql | psql gazetteer osm2pgsql -lsc --slim -O gazetteer -C 2000 -d gazetteer ~/OSM-API-Proxy/data/offenbach.osm I think you skipped the steps to install postgis on your db... mike On Thu, Dec 22, 2011 at 2:33 AM, Mike Dupont jamesmikedup...@googlemail.com wrote: http://wiki.openstreetmap.org/wiki/Nominatim/Installation Ignore any errors about place_boundingbox not existing in the first run!If you get an error ERROR: type planet_osm_ways does not exist, that means you are trying to run the script on a non-slim database which is not supported; you need to specify -s on first import. cat gazetteer-tables.sql | psql gazetteer api.openstreetmap.org/pbf/ On Thu, Dec 22, 2011 at 2:21 AM, Anwar Azulfa an...@troyans.net wrote: planet_osm_ways mike -- James Michael DuPont Member of Free Libre Open Source Software Kosova http://flossk.org -- James Michael DuPont Member of Free Libre Open Source Software Kosova http://flossk.org -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Direct Map to my Own tile server (brewmap)
What do you mean i must extract data from database ? How i can extract data from database on specific location because my map is around the world? my db is postgresql. tks 2012/1/25 Graham Jones grahamjones...@gmail.com Brewmap.cfg defines the sets of data that will be displayed. You need to change the sql to extract the data you want from the database then run the python program in the server directory to create the json files that the client uses to display the icons. The reason that only uk data is shown is because you have not regenerated the json files from your own database. I would recommend that you only do this for a limited area because it will not handle large datasets well - see a similar discussion on the osm talk list over the weekend. Graham from my phone On 25 Jan 2012 03:24, Anwar Azulfa an...@troyans.net wrote: Thanks Graham, I just change http://tile.openstreetmap.org be http://www.mydomain/com/place_of_my_tile. Then, if i want to show custom data on another location for example French, what step which i must do ? I have change long and lat to redirect to another location, but icons still on england. Thnks 2012/1/25 Graham Jones grahamjones...@gmail.com Hi Anwar, The BrewMap client is just a sim... -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Direct Map to my Own tile server (brewmap)
i cannot get brewmap.js on anywhere inside brewmap source folder after i checkout Brewmap source are there another plugin which must i install on server ? 2012/1/24 Graham Jones grahamjones...@gmail.com Hi Anwar, If you have it running ok on your server, but want it to display your own tiles as the basemap rather than the default OSM tiles, you just need to change line 555 of brewmap.js. Ideally this would be in the BrewMap.cfg configuration file rather than being hard coded. I am happy to receive pull requests on github if you would like to change it to use a parameter in the configuration file! Regards Graham. On 23 January 2012 09:49, Anwar Azulfa an...@troyans.net wrote: Hi All, I want to build app like on : http://brewmap.maps3.org.uk/client/brewmap.html if on link above, map is from openstreetmap, but i want to direct map to my own tile server. What package which i must install on my own server ? -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Graham Jones Hartlepool, UK. -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Direct Map to my Own tile server (brewmap)
Hi All, I want to build app like on :http://brewmap.maps3.org.uk/client/brewmap.html if on link above, map is from openstreetmap, but i want to direct map to my own tile server. What package which i must install on my own server ? -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] ask How to Build API on my own map ?
i have following reference from http://wiki.openstreetmap.org/wiki/The_Rails_Port When i execute : rake gems:install i have following error: *$ rake gems:install --trace* *rake aborted!* *no such file to load -- bundler/setup* */usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'* */usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'* */home/frans/Map/src/rails/config/boot.rb:6* */usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'* */usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'* */home/frans/Map/src/rails/config/application.rb:1* */usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'* */usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'* */home/frans/Map/src/rails/Rakefile:4* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'* */var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'* */var/lib/gems/1.8/gems/rake-0.9.2.2/bin/rake:33* */usr/local/bin/rake:19:in `load'* */usr/local/bin/rake:19* What should i do to solve this ? Thanks 2012/1/3 Philipp Borgers borg...@mi.fu-berlin.de First you should think about what you want. There is an API, and XAPI and there is the overpass API that features its own API. For the XAPI setting up the database is as simple as setting up a database for rendering. Time for import depends on the data you give as input. The complexity for setting up the differen XAPI implementations differs. We tried to make the setup of the xappy.js implementation as easy as possible but the implementation isn't complete (missing some request types). Setting up overpass api and database is relative easy compared to xapi setup but the import tends to be longer. Hope this helps somehow. Regards Philipp On Mon, 2012-01-02 at 17:56 +0700, Anwar Azulfa wrote: which one better between XAPI and overpass API ?and which on simpler? 2012/1/2 Anwar Azulfa an...@troyans.net Thanks for Reply Tom, i have already built Tile Server on my server. Now I want to build API on it 2012/1/2 Tom Hughes t...@compton.nu On 02/01/12 09:39, Anwar Azulfa wrote: I want to build API on my own map (tile server).xe Well first you need to make up your mind if you want an API or a tile server as they are two different things... should i do use this reference ? : http://wiki.openstreetmap.org/wiki/Rails_port If you want an API then yes, if you want a tile server then no. Tom -- Tom Hughes (t...@compton.nu) http://compton.nu/ -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] ask How to Build API on my own map ?
Thanks for Reply Tom, i have already built Tile Server on my server. Now I want to build API on it 2012/1/2 Tom Hughes t...@compton.nu On 02/01/12 09:39, Anwar Azulfa wrote: I want to build API on my own map (tile server). Well first you need to make up your mind if you want an API or a tile server as they are two different things... should i do use this reference ? : http://wiki.openstreetmap.org/**wiki/Rails_porthttp://wiki.openstreetmap.org/wiki/Rails_port If you want an API then yes, if you want a tile server then no. Tom -- Tom Hughes (t...@compton.nu) http://compton.nu/ -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] ask How to Build API on my own map ?
which one better between XAPI and overpass API ?and which on simpler? 2012/1/2 Anwar Azulfa an...@troyans.net Thanks for Reply Tom, i have already built Tile Server on my server. Now I want to build API on it 2012/1/2 Tom Hughes t...@compton.nu On 02/01/12 09:39, Anwar Azulfa wrote: I want to build API on my own map (tile server). Well first you need to make up your mind if you want an API or a tile server as they are two different things... should i do use this reference ? : http://wiki.openstreetmap.org/**wiki/Rails_porthttp://wiki.openstreetmap.org/wiki/Rails_port If you want an API then yes, if you want a tile server then no. Tom -- Tom Hughes (t...@compton.nu) http://compton.nu/ -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] map disappear on YourS local installation
i have follow refernce from : http://wiki.openstreetmap.org/wiki/Gosmore include install some package : sudo apt-get install libxml2-dev libgtk2.0-dev g++ make subversion libcurl4-gnutls-dev libgps-dev but, gosmore still error when i try make source 2011/12/28 Nic Roets nro...@gmail.com The correct package name is libxml2-dev On Tue, Dec 27, 2011 at 5:08 PM, Anwar Azulfa an...@troyans.net wrote: i cannot get libxml-2.0-dev from package user@ubuntu:~/Map/src/gosmore$ sudo apt-get install libxml-2.0-dev Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libxml-2.0-dev E: Couldn't find any package by regex 'libxml-2.0-dev' 2011/12/27 Nic Roets nro...@gmail.com Hello Anwar, It looks like you don't have libxml-2.0-dev installed. On Tue, Dec 27, 2011 at 3:32 AM, Anwar Azulfa an...@troyans.net wrote: i have copy bboxes.c into jni folder on ubuntu 11.10, but when i compile it.I got error like bellow : $make g++ -DCHILDREN=16 -O2 -DRES_DIR=\/usr/local/share/gosmore/\ -W -Wall `pkg-config --cflags libxml-2.0 || echo -I /usr/include/libxml2` `pkg-config --libs libxml-2.0 || echo -l xml2 -lm` \ jni/gosmore.cpp jni/libgosm.cpp jni/openglespolygon.h \ jni/openglespolygon.cpp -o gosmore `pkg-config --cflags --libs gtk+-2.0 || echo -D HEADLESS` `pkg-config --libs libcurl` `[ -e /usr/include/gps.h ] echo -DUSE_GPSD -lgps ` `pkg-config --libs pkg-config --libs gthread-2.0` jni/gosmore.cpp: In function ‘void* UpdateMapThread(void*)’: jni/gosmore.cpp:1339:12: warning: variable ‘res’ set but not used [-Wunused-but-set-variable] jni/gosmore.cpp: At global scope: jni/gosmore.cpp:1655:5: warning: unused parameter ‘event’ [-Wunused-parameter] jni/gosmore.cpp:1655:5: warning: unused parameter ‘ex’ [-Wunused-parameter] jni/gosmore.cpp:1655:5: warning: unused parameter ‘ey’ [-Wunused-parameter] jni/gosmore.cpp:2102:6: warning: unused parameter ‘width’ [-Wunused-parameter] jni/gosmore.cpp: In function ‘gint DrawExpose()’: jni/gosmore.cpp:2997:40: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat] jni/gosmore.cpp: In function ‘gint Drag(GtkWidget*, GdkEventMotion*, void*)’: jni/gosmore.cpp:3089:1: warning: no return statement in function returning non-void [-Wreturn-type] jni/gosmore.cpp: In function ‘int Click(GtkWidget*, GdkEventButton*, void*)’: jni/gosmore.cpp:3094:1: warning: no return statement in function returning non-void [-Wreturn-type] jni/gosmore.cpp: In function ‘int UserInterface(int, char**, const char*, const char*)’: jni/gosmore.cpp:3586:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] jni/gosmore.cpp:3350:26: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result [-Wunused-result] jni/gosmore.cpp: In function ‘void* UpdateMapThread(void*)’: jni/gosmore.cpp:1359:29: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result] jni/gosmore.cpp: In function ‘void DoFollowThing(gpsNewStruct*)’: jni/gosmore.cpp:878:67: warning: ‘n2Left’ may be used uninitialized in this function [-Wuninitialized] jni/gosmore.cpp: At global scope: jni/gosmore.cpp:2070:14: warning: ‘casing’ defined but not used [-Wunused-variable] jni/gosmore.cpp:3122:17: warning: ‘gboolean DropOnDraw(GtkWidget*, GdkDragContext*, gint, gint, guint, gpointer)’ defined but not used [-Wunused-function] jni/openglespolygon.cpp: In function ‘void Delete(PolygonEdge*)’: jni/openglespolygon.cpp:163:34: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] jni/openglespolygon.cpp: In function ‘void Check(PolygonEdge*)’: jni/openglespolygon.cpp:243:3: warning: suggest parentheses around ‘’ within ‘||’ [-Wparentheses] jni/openglespolygon.cpp: In function ‘void AddPolygon(std::vectorPolygonEdge, FixedPoint*, int)’: jni/openglespolygon.cpp:312:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] jni/openglespolygon.cpp: In function ‘void Fill(std::vectorPolygonEdge, int, GdkWindow*, GdkGC*)’: jni/openglespolygon.cpp:367:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] /tmp/cctCrIBO.o: In function `LoadElemstyles(char const*, char const*, styleStruct*, elemstyleMapping*)': libgosm.cpp:(.text+0x2e05): undefined reference to `xmlNewTextReaderFilename' libgosm.cpp:(.text+0x30fe): undefined reference to `xmlTextReaderRead' libgosm.cpp:(.text+0x3110): undefined reference to `xmlTextReaderName' libgosm.cpp:(.text+0x311f): undefined reference to `xmlTextReaderNodeType' libgosm.cpp:(.text+0x3172): undefined reference to `xmlTextReaderMoveToNextAttribute' libgosm.cpp:(.text+0x3186): undefined reference to `xmlTextReaderName' libgosm.cpp:(.text+0x3193): undefined reference
Re: [OSM-dev] map disappear on YourS local installation
+0x3f85): undefined reference to `xmlTextReaderNodeType' libgosm.cpp:(.text+0x3f92): undefined reference to `xmlTextReaderName' libgosm.cpp:(.text+0x4034): undefined reference to `xmlTextReaderName' libgosm.cpp:(.text+0x4050): undefined reference to `xmlTextReaderValue' libgosm.cpp:(.text+0x40c6): undefined reference to `xmlFree' libgosm.cpp:(.text+0x40cf): undefined reference to `xmlFree' libgosm.cpp:(.text+0x40d7): undefined reference to `xmlTextReaderMoveToNextAttribute' libgosm.cpp:(.text+0x416d): undefined reference to `xmlFree' libgosm.cpp:(.text+0x4175): undefined reference to `xmlTextReaderMoveToNextAttribute' libgosm.cpp:(.text+0x4185): undefined reference to `xmlTextReaderName' libgosm.cpp:(.text+0x4190): undefined reference to `xmlTextReaderValue' libgosm.cpp:(.text+0x4265): undefined reference to `xmlFree' libgosm.cpp:(.text+0x4294): undefined reference to `xmlFree' /tmp/cctCrIBO.o: In function `RebuildPak(char const*, char const*, char const*, char const*, int const*)': libgosm.cpp:(.text+0x7147): undefined reference to `xmlReaderForFd' libgosm.cpp:(.text+0x7714): undefined reference to `xmlTextReaderRead' libgosm.cpp:(.text+0x7727): undefined reference to `xmlTextReaderName' libgosm.cpp:(.text+0x7739): undefined reference to `xmlTextReaderNodeType' libgosm.cpp:(.text+0x77ba): undefined reference to `xmlFree' libgosm.cpp:(.text+0x77c4): undefined reference to `xmlTextReaderMoveToNextAttribute' libgosm.cpp:(.text+0x77d6): undefined reference to `xmlTextReaderName' libgosm.cpp:(.text+0x77e3): undefined reference to `xmlTextReaderValue' libgosm.cpp:(.text+0x7d2d): undefined reference to `xmlFree' libgosm.cpp:(.text+0x7edc): undefined reference to `xmlFree' libgosm.cpp:(.text+0x7fa8): undefined reference to `xmlTextReaderNodeType' libgosm.cpp:(.text+0x8236): undefined reference to `xmlFree' libgosm.cpp:(.text+0x8248): undefined reference to `xmlFree' libgosm.cpp:(.text+0x829e): undefined reference to `xmlFree' libgosm.cpp:(.text+0x82b0): undefined reference to `xmlFree' libgosm.cpp:(.text+0x830d): undefined reference to `xmlFree' libgosm.cpp:(.text+0xc1fc): undefined reference to `xmlStrdup' collect2: ld returned 1 exit status make: *** [gosmore] Error 1 What should i do to solve this ? 2011/12/26 Nic Roets nro...@gmail.com Yes, I see you have problems after upgrading to 11.10. I don't have access to my 11.10 right now, but I can give you a few things to try. Density.c is used to generate jni/bboxes.c You can bypass density.c by copying bboxes from your 10.10 installation and then 'touch' is. Also, are you aware of the Osm.org Routing Demo ? I fixed many bugs in YOURS and added a few features, like draggable routes and JSONP support. It's still not easy to adapt it incorporate it in a new website and there are still a few bugs, but I think it's a worthwhile alternative. Regards, Nic On Mon, Dec 26, 2011 at 7:34 AM, Anwar Azulfa an...@troyans.net wrote: Hi Cartinus, Now i use German.pak which i downloaded from http://dev.openstreetmap.de/gosmore/ Firstly when i try routing with accessing localhost on browser it doesn't work, becuase of this code i think: */*switch ($layer) { case 'cn': $gosmore = '/normal'; $style = 'cyclestyles.xml'; break; case 'test': $gosmore = '/test'; $style = 'elemstyles.xml'; break; default: $gosmore = '/normal'; $style = 'genericstyles.xml'; break; } $dir = $yours_dir.$gosmore;* when i check on some folders, i can't get some xml file include gosmore.i found *elemstyles.xml* only. After i commented these line and change *$dir = $yours_dir.$gosmore;* be *$dir = $yours_dir;* Now my routing works well.I can create route on Germany map. :) .Its running on ubuntu 10.10 But now i try using it on Ubuntu 11.10 server. After i checkout source then i got error when execute : *$ make gcc -lm density.c -o density /tmp/ccNQSatu.o: In function `main': density.c:(.text+0x21f): undefined reference to `exp' density.c:(.text+0x224): undefined reference to `atan' density.c:(.text+0x2c3): undefined reference to `exp' density.c:(.text+0x2c8): undefined reference to `atan' density.c:(.text+0x5d3): undefined reference to `exp' density.c:(.text+0x5d8): undefined reference to `atan' density.c:(.text+0x67a): undefined reference to `exp' density.c:(.text+0x67f): undefined reference to `atan' density.c:(.text+0x723): undefined reference to `exp' density.c:(.text+0x728): undefined reference to `atan' density.c:(.text+0x793): undefined reference to `exp' density.c:(.text+0x798): undefined reference to `atan' collect2: ld returned 1 exit status make: *** [jni/bboxes.c] Error 1* is it bug of gosmore or what is this ? Thks 2011/12/26 Cartinus carti...@xs4all.nl Hello, It doesn't find a route because the start point and the end point of your query are somewhere in Europe. flat and flon are the latitude and longitude of the start point. tlat and tlon are the latitude
Re: [OSM-dev] map disappear on YourS local installation
I have configure and make this source, but when i try to execute : *QUERY_STRING=flat=52.396545flon=4.915714tlat=52.373075tlon=4.901638fast=0v=motorcar ./gosmore* * * [this is output] maple@maple:~/src/gosmore$ QUERY_STRING=flat=52.396545flon=4.915714tlat=52.373075tlon=4.901638fast=0v=motorcar ./gosmore Content-Type: text/plain *No route found* this is log when i configure, make and make install : http://pastebin.com/qQPj1C0f note: I only rebuild Indonesia.osm.bz2 use gosmore, Help me,please 2011/12/24 Nic Roets nro...@gmail.com On Thu, Dec 22, 2011 at 5:36 PM, Anwar Azulfa an...@troyans.net wrote: i have checkout from http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via now, map is appear. but when i try to make routing, i get error again this is step which i did : 1. i following reference from http://wiki.openstreetmap.org/wiki/YOURS and checkout from http://svn.openstreetmap.org/applicatio … on-1.0-viahttp://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via 2. i checkout gosmore source from http://svn.openstreetmap.org/applicatio … ng/gosmorehttp://svn.openstreetmap.org/applications/rendering/gosmore 3.download file .pak and rename to gosmore.pak.i put this file inside gosmore folder 4. i put YOURS/* to /var/www so i can acces it via browser with http://localhost now i can access map, but when i make a route from one location to another location and click find route, error message :Status: An unexpected error occured in Gosmore: appear i check on /var/log/apache2/error.log and i get this error message : *[Thu Dec 22 22:29:48 2011] [error] [client 127.0.0.1] PHP Notice: Undefined index: format in /home/maple/yours/api/1.0/gosmore.php on line 105, referer: http://localhost/* *nice: ./gosmore: No such file or directory* * * What should i do to solve this ? Inside the gosmore folder, you should run ./configure make Currently, gosmore will not compile with HEADLESS. I suggest you compile with gtk+2 includes and libraries installed. Or you can check out a version what is more than 3 months old. It is also a good idea to test routing from the command line before you test YOURS e.g. QUERY_STRING=flat=52.396545flon=4.915714tlat=52.373075tlon=4.901638fast=0v=motorcar ./gosmore Regards, Nic Help me, please 2011/12/21 Anwar Azulfa an...@troyans.net I try install yours on my computer, i have followed reference from http://wiki.openstreetmap.org/wiki/YOURS But when i access it via browser, i can't found any map. then i get idea to pointing js to my map on local computer because i have own local tiles . I try to change init function on yournavigation.js with : function init() { var options = { projection: new OpenLayers.Projection(EPSG:900913), displayProjection: new OpenLayers.Projection(EPSG:4326), units: m, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), numZoomLevels: 16, controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.KeyboardDefaults() ] }; myFirstMap = new OpenLayers.Map(map,options); var newL = new OpenLayers.Layer.OSM(Default, http://localhost/osm_tiles3/${z}/${x}/${y}.png;, {numZoomLevels: 19}); map.addLayer(newL); if (!map.getCenter()) { var center = new OpenLayers.LonLat(116.97,-2.56); center.transform(options.displayProjection, options.projection); map.setCenter(center, 5); } } But i stil l can't find map on it ? What should i do to solve this ? -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] (gosmore:25678): Gtk-WARNING **: cannot open display:
so i must execute : *unset DISPLAY* *QUERY_STRING=flat=52.396545flon=4.915714tlat=52.373075tlon=4.901638fast=0v=motorcar ./gosmore* then *export QUERY_STRING* is it right ? About yield on your computer : *Content-Type: text/plain* * * *No route found* Is it mean Error ? 2011/12/24 Nic Roets nro...@gmail.com Hello Anwar, Gosmore will not connect to the display if the QUERY_STRING environment variable was set. For example: unset DISPLAY QUERY_STRING=flat=52.396545flon=4.915714tlat=52.373075tlon=4.901638fast=0v=motorcar ./gosmore Yield on my computer: Content-Type: text/plain No route found On Thu, Dec 22, 2011 at 9:35 AM, Anwar Azulfa an...@troyans.net wrote: I have try using gosmore, but gosmore like need GTK.I rebuild on Ubuntu server which have only console screen. How to solve this ? Thanks -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] map disappear on YourS local installation
Hi Cartinus, Now i use German.pak which i downloaded from http://dev.openstreetmap.de/gosmore/ Firstly when i try routing with accessing localhost on browser it doesn't work, becuase of this code i think: */*switch ($layer) { case 'cn': $gosmore = '/normal'; $style = 'cyclestyles.xml'; break; case 'test': $gosmore = '/test'; $style = 'elemstyles.xml'; break; default: $gosmore = '/normal'; $style = 'genericstyles.xml'; break; } $dir = $yours_dir.$gosmore;* when i check on some folders, i can't get some xml file include gosmore.i found *elemstyles.xml* only. After i commented these line and change *$dir = $yours_dir.$gosmore;* be *$dir = $yours_dir;* Now my routing works well.I can create route on Germany map. :) .Its running on ubuntu 10.10 But now i try using it on Ubuntu 11.10 server. After i checkout source then i got error when execute : *$ make gcc -lm density.c -o density /tmp/ccNQSatu.o: In function `main': density.c:(.text+0x21f): undefined reference to `exp' density.c:(.text+0x224): undefined reference to `atan' density.c:(.text+0x2c3): undefined reference to `exp' density.c:(.text+0x2c8): undefined reference to `atan' density.c:(.text+0x5d3): undefined reference to `exp' density.c:(.text+0x5d8): undefined reference to `atan' density.c:(.text+0x67a): undefined reference to `exp' density.c:(.text+0x67f): undefined reference to `atan' density.c:(.text+0x723): undefined reference to `exp' density.c:(.text+0x728): undefined reference to `atan' density.c:(.text+0x793): undefined reference to `exp' density.c:(.text+0x798): undefined reference to `atan' collect2: ld returned 1 exit status make: *** [jni/bboxes.c] Error 1* is it bug of gosmore or what is this ? Thks 2011/12/26 Cartinus carti...@xs4all.nl Hello, It doesn't find a route because the start point and the end point of your query are somewhere in Europe. flat and flon are the latitude and longitude of the start point. tlat and tlon are the latitude and longitude of the end point. Try these values. They should be somewhere in Bandung flat=-6.91469526290894flon=**107.634368896484tlat=-6.** 91350746154785tlon=107.**643768310547 --- m.v.g., Cartinus On 12/26/2011 03:25 AM, Anwar Azulfa wrote: I have configure and make this source, but when i try to execute : *QUERY_STRING=flat=52.396545**flon=4.915714tlat=52.373075** tlon=4.901638fast=0v=**motorcar ./gosmore* * * [this is output] maple@maple:~/src/gosmore$ QUERY_STRING=flat=52.396545**flon=4.915714tlat=52.373075** tlon=4.901638fast=0v=**motorcar ./gosmore Content-Type: text/plain *No route found* this is log when i configure, make and make install : http://pastebin.com/qQPj1C0f note: I only rebuild Indonesia.osm.bz2 use gosmore, Help me,please 2011/12/24 Nic Roets nro...@gmail.com mailto:nro...@gmail.com On Thu, Dec 22, 2011 at 5:36 PM, Anwar Azulfa an...@troyans.net mailto:an...@troyans.net wrote: i have checkout from http://svn.openstreetmap.org/**applications/routing/yours/** branches/version-1.0-viahttp://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via now, map is appear. but when i try to make routing, i get error again this is step which i did : 1. i following reference from http://wiki.openstreetmap.org/**wiki/YOURShttp://wiki.openstreetmap.org/wiki/YOURSand checkout from http://svn.openstreetmap.org/**applicatiohttp://svn.openstreetmap.org/applicatio… on-1.0-via http://svn.openstreetmap.org/**applications/routing/yours/** branches/version-1.0-viahttp://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via 2. i checkout gosmore source from http://svn.openstreetmap.org/**applicatiohttp://svn.openstreetmap.org/applicatio… ng/gosmore http://svn.openstreetmap.org/**applications/rendering/gosmorehttp://svn.openstreetmap.org/applications/rendering/gosmore ** 3.download file .pak and rename to gosmore.pak.i put this file inside gosmore folder 4. i put YOURS/* to /var/www so i can acces it via browser with http://localhost now i can access map, but when i make a route from one location to another location and click find route, error message :Status: An unexpected error occured in Gosmore: appear i check on /var/log/apache2/error.log and i get this error message : *[Thu Dec 22 22:29:48 2011] [error] [client 127.0.0.1] PHP Notice: Undefined index: format in /home/maple/yours/api/1.0/**gosmore.php on line 105, referer: http://localhost/* *nice: ./gosmore: No such file or directory* * * What should i do to solve this ? Inside the gosmore folder, you should run ./configure make Currently, gosmore will not compile with HEADLESS. I suggest you compile
Re: [OSM-dev] map disappear on YourS local installation
i have checkout from http://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via now, map is appear. but when i try to make routing, i get error again this is step which i did : 1. i following reference from http://wiki.openstreetmap.org/wiki/YOURS and checkout from http://svn.openstreetmap.org/applicatio … on-1.0-viahttp://svn.openstreetmap.org/applications/routing/yours/branches/version-1.0-via 2. i checkout gosmore source from http://svn.openstreetmap.org/applicatio … ng/gosmore http://svn.openstreetmap.org/applications/rendering/gosmore 3.download file .pak and rename to gosmore.pak.i put this file inside gosmore folder 4. i put YOURS/* to /var/www so i can acces it via browser with http://localhost now i can access map, but when i make a route from one location to another location and click find route, error message :Status: An unexpected error occured in Gosmore: appear i check on /var/log/apache2/error.log and i get this error message : *[Thu Dec 22 22:29:48 2011] [error] [client 127.0.0.1] PHP Notice: Undefined index: format in /home/maple/yours/api/1.0/gosmore.php on line 105, referer: http://localhost/* *nice: ./gosmore: No such file or directory* * * What should i do to solve this ? Help me, please 2011/12/21 Anwar Azulfa an...@troyans.net I try install yours on my computer, i have followed reference from http://wiki.openstreetmap.org/wiki/YOURS But when i access it via browser, i can't found any map. then i get idea to pointing js to my map on local computer because i have own local tiles . I try to change init function on yournavigation.js with : function init() { var options = { projection: new OpenLayers.Projection(EPSG:900913), displayProjection: new OpenLayers.Projection(EPSG:4326), units: m, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), numZoomLevels: 16, controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.KeyboardDefaults() ] }; myFirstMap = new OpenLayers.Map(map,options); var newL = new OpenLayers.Layer.OSM(Default, http://localhost/osm_tiles3/${z}/${x}/${y}.png;, {numZoomLevels: 19}); map.addLayer(newL); if (!map.getCenter()) { var center = new OpenLayers.LonLat(116.97,-2.56); center.transform(options.displayProjection, options.projection); map.setCenter(center, 5); } } But i stil l can't find map on it ? What should i do to solve this ? -- Regards, M.Iftakhul Anwar -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found
Thanks for all your reply, I have re deploy my osm2pgsql with nominatim_commit.patch But the error still same.http://pastebin.com/ctQScVhA What will happen if i ignore it ? 2011/12/21 Sarah Hoffmann lon...@denofr.de Hi, On Wed, Dec 21, 2011 at 06:17:54AM +0700, Anwar Azulfa wrote: Now i have user gazetteer from http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/gazetteer this is my step by step installation which i follow: 1.createdb 2.import sql file cat /usr/share/postgresql/8.4/contrib/pg_trgm.sql | psql gazetteer cat /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql | psql gazetteer cat /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql | psql gazetteer 3.load planet data ./osm2pgsql -S default.style --slim -d gazetteer -C 2048 ~/AllMap/indonesia.osm.bz2 4.copy lib into /usr/local/share sudo mkdir /usr/local/share/gazetteer sudo cp .libs/gazetteer.so /usr/local/share/gazetteer/gazetteer.so 5.add suplementary data when i import file below to db cat import_country_name.sql | psql gazetteer i get error message like http://pastebin.com/ctQScVhA There is currently a bug in osm2pgsql. It forgets to actually commit your data. I'm trying to get that fixed in svn. For the moment, I have a patch attached. Apply it, recompile osm2pgsql and redo everything from step 3. Sarah -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found
I have begin from scratch and use command : ./osm2pgsql -lsc --slim -O gazetteer -C 2000 -d gazetteer ~/AllMap/indonesia.osm.bz2 to load osm file to gazetteer db. But when i execute : cat gazetteer-functions.sql | psql gazetteer [output] *CREATE FUNCTION CREATE FUNCTION ... ... ERROR: type planet_osm_ways does not exist ... ERROR: type place_boundingbox does not exist ERROR: type place_boundingbox does not exist ERROR: type place_boundingbox does not exist CONTEXT: compilation of PL/pgSQL function update_place near line 2 ERROR: type place_boundingbox does not exist CONTEXT: compilation of PL/pgSQL function update_place near line 2 CREATE FUNCTION CREATE FUNCTION** * on documentation tell me that if i get error message like *ERROR: type planet_osm_ways does not exist* But i have import db use slim option, that is : ./osm2pgsql -lsc --slim -O gazetteer -C 2000 -d gazetteer ~/AllMap/indonesia.osm.bz2 actually -s is slim, but i add --slim which it's same. Any suggestions about it ? Thanks 2011/12/22 Sarah Hoffmann lon...@denofr.de Hi, On Wed, Dec 21, 2011 at 03:16:39PM +0700, Anwar Azulfa wrote: Thanks for all your reply, I have re deploy my osm2pgsql with nominatim_commit.patch But the error still same.http://pastebin.com/ctQScVhA What will happen if i ignore it ? As Mike said, it is not a good idea to ignore the error because it tells you that something more fundamental is going wrong. On Wed, Dec 21, 2011 at 06:17:54AM +0700, Anwar Azulfa wrote: 3.load planet data ./osm2pgsql -S default.style --slim -d gazetteer -C 2048 ~/AllMap/indonesia.osm.bz2 Actually, you are using the wrong output here. You are creating a database for mapnik, not for the gazetteer. The correct command line should be: ./osm2pgsql -lsc -d gazetteer -O gazetteer -C 2048 ~/AllMap/indonesia.osm.bz2 Sarah -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] (gosmore:25678): Gtk-WARNING **: cannot open display:
I have try using gosmore, but gosmore like need GTK.I rebuild on Ubuntu server which have only console screen. How to solve this ? Thanks -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Nominatim Installation problem - nominatim.xml not found
Hi All, I have tried to set up Nominatim on my server.I following raference from http://wiki.openstreetmap.org/wiki/Nominatim/Installation I have insert some .sql file into datbase, then copy website/* into documentRoot of my subdomain folder. When i access the domain, When i click *search* button, 404 not found i have checked error log on /var/log/apache2.log.this is output of the error : [Tue Dec 20 14:40:39 2011] [error] [client 118.137.0.31] PHP Notice: Use of undefined constant CONST_BulkUserIPs - assumed 'CONST_BulkUserIPs' in /var/www/public/searc/search.php on line 7 [Tue Dec 20 14:40:39 2011] [error] [client 118.137.0.31] PHP Notice: Undefined index: PATH_INFO in /var/www/public/search.php on line 64 [Tue Dec 20 14:40:39 2011] [error] [client 118.137.0.31] File does not exist: /var/www/public/nominatim.xml What should i do ? How to solve this issue ? -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Nominatim Installation problem - nominatim.xml not found
Now i have user gazetteer from http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/gazetteer this is my step by step installation which i follow: 1.createdb 2.import sql file cat /usr/share/postgresql/8.4/contrib/pg_trgm.sql | psql gazetteer cat /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql | psql gazetteer cat /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql | psql gazetteer 3.load planet data ./osm2pgsql -S default.style --slim -d gazetteer -C 2048 ~/AllMap/indonesia.osm.bz2 4.copy lib into /usr/local/share sudo mkdir /usr/local/share/gazetteer sudo cp .libs/gazetteer.so /usr/local/share/gazetteer/gazetteer.so 5.add suplementary data when i import file below to db cat import_country_name.sql | psql gazetteer i get error message like http://pastebin.com/ctQScVhA Anyone can help me ? or i cannot ignore that error ? 2011/12/20 Mike Dupont jamesmikedup...@googlemail.com I think the problem is that you are using http://svn.openstreetmap.org/applications/utils/nominatim and not http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/gazetteer if i remember correctly, and please someone correct me if I am wrong, the export/osm2pgsql/gazetteer is the right one, and the applications/utils/nominatim is not supported. thanks, mike On Tue, Dec 20, 2011 at 9:15 AM, Anwar Azulfa an...@troyans.net wrote: nominatim.xml -- James Michael DuPont Member of Free Libre Open Source Software Kosova http://flossk.org -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
[OSM-dev] map disappear on YourS local installation
I try install yours on my computer, i have followed reference from http://wiki.openstreetmap.org/wiki/YOURS But when i access it via browser, i can't found any map. then i get idea to pointing js to my map on local computer because i have own local tiles . I try to change init function on yournavigation.js with : function init() { var options = { projection: new OpenLayers.Projection(EPSG:900913), displayProjection: new OpenLayers.Projection(EPSG:4326), units: m, maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), numZoomLevels: 16, controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.Permalink(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.KeyboardDefaults() ] }; myFirstMap = new OpenLayers.Map(map,options); var newL = new OpenLayers.Layer.OSM(Default, http://localhost/osm_tiles3/${z}/${x}/${y}.png;, {numZoomLevels: 19}); map.addLayer(newL); if (!map.getCenter()) { var center = new OpenLayers.LonLat(116.97,-2.56); center.transform(options.displayProjection, options.projection); map.setCenter(center, 5); } } But i stil l can't find map on it ? What should i do to solve this ? -- Regards, M.Iftakhul Anwar ___ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev