Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm a newbie when it comes to mapping application. I had successfully loaded my OpenstreetMap data in a Postgresql/PostGIS database. Now my problem is how to render the vector data (the POI's, ways, etc) from the database to the the map. I don't have the slightest idea on how to do it, though I think I knew how they are rendered (OpenLayers use KML/XML files to render vector data, I tried it in their tutorial). Can someone explain to me how it works; do I need to get the data from the database as XML file? I don't know if I'm missing here something. Please help me. Thanks a lot!

share|improve this question

3 Answers 3

If you want your web map to look like the one shown on openstreetmap.org, you can use the same renderer they use: Mapnik. It can read from PostGIS or the original .osm files (would have saved the effort of importing the data to PostGIS first) and some other formats. I'm not sure how easy it is to use Mapnik though. Some information on rendering and customization.

There are many other OSM renderers like Maperitive (used to be Kosmos), etc. Find a list on OSM Wiki.

Another option would be to find a mapserver that suits you (e.g. Geoserver or UMN Mapserver) and learn how to write OSM layer styles there:

It really depends on what the result is supposed to look like and how much effort you're willing to put in it.

share|improve this answer

GeoServer is a Java webapp that will require a JVM and Java application server, such as Apache Tomcat, to run. As a Java developer, I prefer GeoServer to the other WMS's because of my development and deployment process, among other things such as Open Geospatial Consortium compliance for it being a WMS and WFS.

GeoServer does not read OSM data files natively, but PostGIS is the preferred way of dealing with large amounts of data in GeoServer. There are some predefined styles available in a default GeoServer installation, although I personally like the one provided in Ivan Williq's blog post.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.