Skip to content

Google themed QGIS styles for OpenStreetMap data loaded with osm2pgsql tool #2

Merged
merged 4 commits into from Dec 20, 2012

5 participants

@aplannersguide

Hi Underdark/Anita,

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!

aplannersguide/Tim

aplannersguide added some commits Dec 20, 2012
@aplannersguide aplannersguide Update styles/README.md
Updated README to include Google Map View and Satellite View QGIS styles for OpenStreetMap data for PostGIS database created using osm2pgsql.
c05c3f1
@aplannersguide aplannersguide Create osm2pgsql_google_line_map.qml
This is a Google Map View inspired style for QGIS for OpenStreetMap data loaded into PostGIS using the osm2pgsql tool. This style is to be used with the osm2pgsql_google_polygon_map.qml file to create a Google themed map based on OpenStreetMap data. 
108e222
@aplannersguide aplannersguide Create osm2pgsql_google_polygon_map.qml
This is a Google Map View inspired style for QGIS for OpenStreetMap data loaded into PostGIS using the osm2pgsql tool. This style is to be used with the osm2pgsql_google_line_map.qml file to create a Google themed map based on OpenStreetMap data. 
9efdce2
@aplannersguide aplannersguide Create osm2pgsql_google_line_satellite.qml
This is a Google Satellite View inspired style for QGIS for OpenStreetMap data loaded into PostGIS using the osm2pgsql tool. This style is to be overlaid aerial photos to create a Google themed map based on OpenStreetMap data. 
154a6f6
@anitagraser anitagraser merged commit 9154b67 into anitagraser:master Dec 20, 2012
@anitagraser
Owner

Thanks for adding to this resource collection!

@aplannersguide

No problem. Here are a couple screenshots of the style so you have a sense for what they look like. Hopefully they are useful to someone else out there.

osm2google1

osm2google2

osm2google3

osm2google4

osm2google5

osm2google6

@anitagraser
Owner

Very nice! Great work!

@spilth
spilth commented Dec 21, 2012

Awesome!

@raynerhoward

Did a double-take when I saw this (being from Chattanooga myself). Excellent!

@lulupak
lulupak commented Jan 9, 2013

Can I use this styles for OpenStreetMap data not loaded with osm2pgsql tool? I have shapefiles from cloudmade.

@aplannersguide

@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.

@aplannersguide

@raynerhoward Great to see another Chattanoogan interested in OpenStreetMap and QGIS. Maybe we could get together sometime for a drink and geek out on GIS.

@lulupak
lulupak commented Jan 17, 2013

Thank you for link to tutorial and the Metro Extract project. It's great! I think I will use the tutorial to do this myself. Thanks for your help

@aplannersguide

@lulupak Glad I could help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.