Join GitHub today
Google themed QGIS styles for OpenStreetMap data loaded with osm2pgsql tool #2
I was inspired by your blog posts on creating a Google Maps themed style within QGIS and decided to try it myself. I used a different tool so I had to reverse engineer your style a bit to make it work with osm2pgsql. I'm new to QGIS and thought the best way to get started would be to just jump in with a project.
I was planning on tweaking the styles for different zoom levels so it looked good at lower zoom levels but thought I would go ahead and share with you now. Another project for another day.
Your blog and tutorials have been a great resource, so thank you and keep up the great work!
added a commit
this pull request
Dec 20, 2012
@lulupak Unfortunately I don't think you can use the styles I created with the cloudmade shapefiles. There is a great tutorial on loading OSM data into a postgres database here that should get you started. Once you have the OSM data in the postgres database you can add the line and polygon files into QGIS. From there you just need to download the .qlm files from the github site and load the styles through the layer properties dialog.
If you are lucky enough to have your city as part of the Metro Extract project (http://metro.teczno.com/) then you can use the osm2pgsql OSM shapefiles along with these styles. I just tested it with Washington DC and it worked great.
I was able to convert the osm2pgsql_google_line_map.qml style to something the cloudmade shapefiles could use but with a couple caveats. The cloudmade data is incomplete, as a result you won't have the airports and railroads showing up with your map. Since I only did it for the osm2pgsql_google_line_map.qml style, the polygons won't be styled. Again, the polygon data isn't as complete as when you import the OSM data using tools like osm2pgsql. so even if I did a conversion for the polygon style it still wouldn't look the same. You can email me if you want me to send the converted .qlm style file to you. Good luck and happy mapping.