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 have a PostGIS 2 database filled with OSM data for my country via Osmosis. Is there perhaps a template/project (!styling) for QGIS i could download, where i would simply change the provider of data to my own database (different database name and credentials) so i wouldnt have to deal with the tedious styling.

Thanks

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If you filled the database with osmosis, you are almost lost. Because if you want the styling used by the official map, you have to fill the database with osm2pgsql. Difference is that closed ways and multipolygon relations are transformed to Postgis polygons by the tool, and spatial indices are created to make processing faster. Osmosis just stores nodes, ways and relations, as in the .osm planet file. You would have to do the rest manually.

You can try this tutorial to get a map out of osm data: http://underdark.wordpress.com/2011/12/15/an-osm2po-quickstart/

share|improve this answer
    
Note: My tutorial only deals with road data though. –  underdark Aug 7 '12 at 12:05
    
Ah, I see, only for routing. So it would be better to use the standard Mapnik toolchain, and forget about Qgis... –  Andre Joost Aug 7 '12 at 12:10
    
Yea, i used osm2pgsql before, and after doing some research its probably the only usable schema for this. It works nice! –  U2ros Aug 17 '12 at 17:23
    
Well, i created the neccessary styles eventually, still, its a lot of work :> –  U2ros Aug 17 '12 at 17:44
    
Creating the mapnik style file was surely a lot of work too... I think the most challenging is the rendering order to get buildings on top of landuses, major roads on top of minor roads, roads on a bridge over the road under it, and so on. Did you get that looking nicely? –  Andre Joost Aug 18 '12 at 6:46

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.