Toolserver:OpenStreetMap


 * OpenStreetMap server
 * Maps server setup tasks
 * OpenStreetMap

projects

 * The multilingual maps are an interesting aspect of OSM.
 * We render different styles on toolserver.
 * query-to-map extract some datas from OSM.


 * OSM-Geohack seems useful to come with 2 clicks from Wikipedia to each OSM-map. Example (Potsdam,Germany)
 * German Geohack shows now directly a OSM-map. (example)

first steps
With a toolserver account you can access the database with: psql -h sql-mapnik osm_mapnik from the normal login server

first steps in PHP
Here a little PHP-Example to get a list of streets in a bounding box:

How to get your own style
thanks to river we have a quite nice rendeing stack on willow. You can use the command line tool /home/project/o/s/m/osm/bin/render to test your own styles and if they're ready you can mail them to this list so we can configure renderd to render tiles for them.

To show the capabilities of the new hstore scheme in conjunction with the rendering system, I created a style that renders surveillance cctvs on a transparent overlay. It's a quite simple style but it shows how to do things. It's located at /home/project/o/s/m/osm/data/styles/surveillance/surveillance.xml and should be redable for everyone.

to render a map of germany in this style, just log on to willow and call

render --bbox 5.56,55.04,15.35,47.15 --style /home/mazder/styles/surveillance/surveillance.xml --size 2000x2000

it will create a map.png if the current directory. Call /home/project/o/s/m/osm/bin/render --help to learn about the possible parameters.

You'll want to add /home/project/o/s/m/osm/bin/ to your PATH in your .bash_profile so you can just all render without a path.

I also added the style to the renderd config and you can take a look at it under http://toolserver.org/~osm/styles/?zoom=12&lat=52.50546&lon=13.42461&layers=00TB0 The style is not perfect, the icons are too big but hey - its just a sample.

test the style on your own machine
Toolserver uses osm2pgsql with default.style and hstore to import planet.osm into the database. So it's easiest to use the same setting on your local machine.

adapt the style

 * 1) Change the location of entities to
 * 2) Change the prefix of the databases from planet_osm (e.g. planet_osm_line) to &planet; (e.g. &planet;_line)

test your style on toolserver
Use the render-command (as explained above) to test your style on toolserver.

announce on the list
Write a mail to the list maps-l@lists.wikimedia.org. Describe your style and why it should be rendered.