anitagraser / QGIS-resources

Collection of QGIS resources featured on my blog
http://underdark.wordpress.com
290 stars 173 forks source link

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

Closed aplannersguide closed 11 years ago

aplannersguide commented 11 years ago

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

anitagraser commented 11 years ago

Thanks for adding to this resource collection!

aplannersguide commented 11 years ago

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 commented 11 years ago

Very nice! Great work!

spilth commented 11 years ago

Awesome!

raynerhoward commented 11 years ago

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

lulupak commented 11 years ago

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

aplannersguide commented 11 years ago

@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 commented 11 years ago

@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 commented 11 years ago

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 commented 11 years ago

@lulupak Glad I could help!