Jump to content

 
Photo

Open Street Maps

- - - - -

  • Please log in to reply
15 replies to this topic

#1
Greg

Greg

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 214 posts
  • Gender:Male
  • Location:Ontario
  • Canada

I'm working on a few 'pro-bono' projects for a non-profit organization.

Open Street Map data seems complete enough for my needs... How do you guys work with the data? I'd love to just drop it straight into Illustrator.

I've been thinking about purchasing a MaPublisher license, has anyone had experience working with geo-referenced OSM data in MaPublisher?
Greg Moore

g r e g @ c a r t o g r a p h i c d e s i g n . c o m
www.cartographicdesign.com

#2
Oleg

Oleg

    Contributor

  • Validated Member
  • PipPip
  • 35 posts
  • Gender:Male
  • Location:Kharkiv
  • Ukraine

I'm working on a few 'pro-bono' projects for a non-profit organization.

Open Street Map data seems complete enough for my needs... How do you guys work with the data? I'd love to just drop it straight into Illustrator.

I've been thinking about purchasing a MaPublisher license, has anyone had experience working with geo-referenced OSM data in MaPublisher?


OSM 2 shapefile:
http://downloads.cloudmade.com/
http://download.geof....de/osm/europe/
http://gis-lab.info/...osm-export.html
http://wiki.openstre...wiki/Shapefiles

- shapefile 2 illustrator:
http://www.cartotalk....php?t5310.html

#3
Jeintz

Jeintz

    Newbie

  • New Member
  • Pip
  • 1 posts
  • Gender:Male
  • Denmark

Hi

I have worked a bit with OSM data in Mapublisher.

I use data from Cloudmade (http://downloads.cloudmade.com/) or GeoFabrik (http://download.geofabrik.de/). Here you can download OSM data in Shapefile format - easy to import in Mapublisher.
There is some .ai exports at the same websites, don't know if is of an
y use.

/Jens Winbladh

(OSM User in Denmark)

I'm working on a few 'pro-bono' projects for a non-profit organization.

Open Street Map data seems complete enough for my needs... How do you guys work with the data? I'd love to just drop it straight into Illustrator.

I've been thinking about purchasing a MaPublisher license, has anyone had experience working with geo-referenced OSM data in MaPublisher?



#4
James Hines

James Hines

    James Anthony Hines

  • Validated Member
  • PipPipPipPipPipPip
  • 532 posts
  • Gender:Male
  • Location:Centreville, Nova Scotia
  • Interests:Cartography, Philosophy, Politics, Psychology, Economics, Occultism, Spiritualism
  • Canada

I'm working on a few 'pro-bono' projects for a non-profit organization.

Open Street Map data seems complete enough for my needs... How do you guys work with the data? I'd love to just drop it straight into Illustrator.

I've been thinking about purchasing a MaPublisher license, has anyone had experience working with geo-referenced OSM data in MaPublisher?


You can not just import OSM data into MAPublisher atleast not yet. Your going to need to use (assuming you don't have FME or not sure if ArcGIS 10 can import that data) the newer versions of QGis. Assuming you going to extract the data into separate layers using MAPublisher your going to have to use the spatial tool (MAP Selections) & the "Split Layer" tool.

Step by Step Solution:

1. Import (prefer advanced over simple) the data. eg. 45352_ln.shp

several optional steps such as set projection, map size, etc.

2.Open up "Map Attributes" & lets take a look at the columns:

In an OpenStreet file there should be:

- timestamp
- user (responsible for data collection)
- tags (very important because you are going to need to extract some data using this column)
- name (community, city, town, etc.)
- place
- highway (I think you get this one but note I would likely select by attributes which do not contain an empty space)
- landuse (is it industrial, residential?)
- waterway (not waterbodies but think of rivers, canals, etc.)
- amenity (schools, parking, etc.)
- tourism (museums, information etc.)
- learning

Showing two examples:

3. Open up "Map Selections"
4. Create new map selection
5. Name is optional, keep attribute filter on & select that pencil at the bottom of that pop up
6. In the expression builder we are going to create an expression for our roads selection:
So in the Objects screen scroll down & select from the list: Roads
In the top of the expression builder popup select the equals sign (=)
Scroll back down again to highway, (no double clicking). Notice on the right at the bottom of the description form a link called "display by value". Single click that & select an attribute. If you need to make more then one selection your going to be required to use "Or" from the top of the popup.

Lets say we only want to select primary roads:

The expression should read: highway = "primary"
If secondary roads is required then: highway = "primary" OR highway = "secondary"

However if you need to extract lakes from the database but there is no field that allows you to just simply extract them like the previous method. Then try a "LIKE" expression from the pull down list:

eg. lets say you need to extract waterbodies from a polygon file:

And the only column that you can use to extract these features from is the "Tags" field & you get something like this:
"natural"="water" Natural could be a number of things so to extract all double line water features, & lakes you will need to use: LIKE(column, "expression") or LIKE(tags, "water")

All features contining water will be selected.

7. Select the "Split layer tool"
8. From Action: optional (your choice)
9. Method > Expression library (the selection you made earlier will be stored in memory)
10. Destination Layer: (name your layer)
11. hit OK

Whew that's just an example of a step by step procedure used to work on OpenStreetMap data.

"There is much beauty that we fail to see through our own eyes teeming with life forms that give us that perception of our reality.  Leaves on the trees blowing gently in the wind, or scarily, the waves pounding through high surf, or lightly on a warm summer’s day; that opportunity to sit or swim in the water on a white beach.   That comfort to shout, “The universal conscious do you hear me?  I am alive, guide me dear logos towards the path of rightnesses.”  Earned what has been kept, no longer to be absorbed into a life filled with cold damn winds and  that stubborn fog clouding  my vision with nothing but darkness."


#5
Greg

Greg

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 214 posts
  • Gender:Male
  • Location:Ontario
  • Canada

Wow Hasdrubal, I owe you one!
This is a huge help! I have been stuck in a few strictly Illustrator contracts over the past few years, and have slowly faded away from GIS.

I had no idea Qgis even existed! Installing now. Amazing!

Thanks again, CartoTalk is an incredible community!

- Greg
Greg Moore

g r e g @ c a r t o g r a p h i c d e s i g n . c o m
www.cartographicdesign.com

#6
Hans van der Maarel

Hans van der Maarel

    CartoTalk Editor-in-Chief

  • Admin
  • PipPipPipPipPipPipPip
  • 3,838 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Cartography, GIS, history, popular science, music.
  • Netherlands

I have a tutorial with screenshots for the Qgis -> Shapefile -> MAPublisher route that I've been meaning to translate and publish. Will try to give that a shot in the next few days.

The problem with OSM (well, one of them anyway), is that the Cloudmade and Geofabrik shapefile downloads that have been mentioned here, as well as the QGis shapefiles and my own FME process, have different data models...
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics

#7
Nick H

Nick H

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 307 posts
  • Gender:Male
  • Location:Caversham, Reading, England.
  • United Kingdom

I had no idea Qgis even existed! Installing now. Amazing!

I hope you enjoy QGIS, it's getting better by the day (literally; a new development version arrives almost every day). To add to the very helpful advice that Hasdrubal gave above, I'd mention that QGIS has a tool that will import data in OSM format directly to PostGIS (osm2pgsql). Once in the database selecting exactly what you need and bringing it into QGIS is very easy (even for me, and I don't know much about Postgres and PostGIS).

On the other topic, if I remember rightly, the SVG exported from OSM won't load into Illustrator. But you can also export Mapnik-rendered maps from the OSM web site as PDFs and I wonder if these will load into Illustrator? I'm not in a position to check this.

Regards,
Nick.
Caversham, Reading, England.

#8
Hans van der Maarel

Hans van der Maarel

    CartoTalk Editor-in-Chief

  • Admin
  • PipPipPipPipPipPipPip
  • 3,838 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Cartography, GIS, history, popular science, music.
  • Netherlands

Got the tutorial translated and online:
OpenStreetMap data in MAPublisher
Hans van der Maarel - Cartotalk Editor
Red Geographics
Email: hans@redgeographics.com / Twitter: @redgeographics

#9
Greg

Greg

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 214 posts
  • Gender:Male
  • Location:Ontario
  • Canada

I'm having an issue with the OSM plugin. my Qgis crashes when I try to open the .osm file (I chose a very small chunk of Ottawa, and tried importing fewer layers) Could my QGis be corrupt?

Edit : Here's the debug file if that helps - > http://www.cartograp.../qgis_error.rtf
Greg Moore

g r e g @ c a r t o g r a p h i c d e s i g n . c o m
www.cartographicdesign.com

#10
James Hines

James Hines

    James Anthony Hines

  • Validated Member
  • PipPipPipPipPipPip
  • 532 posts
  • Gender:Male
  • Location:Centreville, Nova Scotia
  • Interests:Cartography, Philosophy, Politics, Psychology, Economics, Occultism, Spiritualism
  • Canada

Run an Apple Hardware Test & if you find out that you have bad RAM then you better send a report to Apple. In this case it's not the software. But you should also look up the error on the internet for further information. Also you could alsways post a link for us to download that OSM file for us to check it out.

"There is much beauty that we fail to see through our own eyes teeming with life forms that give us that perception of our reality.  Leaves on the trees blowing gently in the wind, or scarily, the waves pounding through high surf, or lightly on a warm summer’s day; that opportunity to sit or swim in the water on a white beach.   That comfort to shout, “The universal conscious do you hear me?  I am alive, guide me dear logos towards the path of rightnesses.”  Earned what has been kept, no longer to be absorbed into a life filled with cold damn winds and  that stubborn fog clouding  my vision with nothing but darkness."


#11
Greg

Greg

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 214 posts
  • Gender:Male
  • Location:Ontario
  • Canada

My hardware is good, I'll experiment with other .osm exports.

When I export with the XML method, i have to rename the file from map.osm.xml to just map.osm

Could this be part of the issue? I dont get any options when I click the export button on Open Street Maps though, so I'm not sure how I'd get around this.
Greg Moore

g r e g @ c a r t o g r a p h i c d e s i g n . c o m
www.cartographicdesign.com

#12
James Hines

James Hines

    James Anthony Hines

  • Validated Member
  • PipPipPipPipPipPip
  • 532 posts
  • Gender:Male
  • Location:Centreville, Nova Scotia
  • Interests:Cartography, Philosophy, Politics, Psychology, Economics, Occultism, Spiritualism
  • Canada

My hardware is good, I'll experiment with other .osm exports.

When I export with the XML method, i have to rename the file from map.osm.xml to just map.osm

Could this be part of the issue? I dont get any options when I click the export button on Open Street Maps though, so I'm not sure how I'd get around this.


Okay I have tried using the same method & had no problem bringing in a portion of Ottawa into QGis 1.5.

First thing when I hit the export button I checked the extension which read map.osm. Where the .xml came from is beyond me at the moment. But what I can tell you it appears that you have two extensions to your file which should not exist, so yea it could be a partial reason. What I would do is re download the area & if you encounter the same problem try using the "download OSM file" tool (down blue arrow) & try these coordinates as an experiement:

Lat: 44.25 to 45.5
Lon: -76.25 to -74.5

Keep in mind you can only download every 0.25° & the data must contain no more then 5000 nodes.

It should work & if not I recommend uninstalling QGis & then reinstall to see what happens. If your still having problems after all of that can you please let us download the files to see or fix the problem. I will do the work myself & let you know if I encountered any problems.

"There is much beauty that we fail to see through our own eyes teeming with life forms that give us that perception of our reality.  Leaves on the trees blowing gently in the wind, or scarily, the waves pounding through high surf, or lightly on a warm summer’s day; that opportunity to sit or swim in the water on a white beach.   That comfort to shout, “The universal conscious do you hear me?  I am alive, guide me dear logos towards the path of rightnesses.”  Earned what has been kept, no longer to be absorbed into a life filled with cold damn winds and  that stubborn fog clouding  my vision with nothing but darkness."


#13
Nick H

Nick H

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 307 posts
  • Gender:Male
  • Location:Caversham, Reading, England.
  • United Kingdom

I'm having an issue with the OSM plugin. my Qgis crashes when I try to open the .osm file (I chose a very small chunk of Ottawa, and tried importing fewer layers) Could my QGis be corrupt?

Sorry to here about your problems with QGIS. I guess that you installed 'Qgis 1.5.0-3 (standalone) for Snow Leopard', is this right?

In QGIS it might be worth uninstalling the OpenStreetMap plugin (Plugins -> Fetch Python Plugins...), reinstalling it and then restarting QGIS. You'll know this anyway, but the plugin you need is the OpenStreetMap plugin (not the OSM Tools plugin!).

The problem is that having downloaded an *.osm file when you try to load it by going Plugins -> OpenStreetMap -> Load OSM from file, this crashes QGIS. I don't know why this is happening, all I can say is that the plugin works perfectly on my system (Vista, QGIS 1.6 and QGIS 1.7). But this doesn't help you much.

As a work-around, if you'd care to post the extents of your area of interest, plus how you would like the data projected (OSM files are WGS84 lat/lon) I could make the shapefiles (this would be about a minute's work).

I do hope your problems won't cause you to walk away from QGIS, it is really is worth persevering with.

Regards,
Nick.
Caversham, Reading, England.

#14
Greg

Greg

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 214 posts
  • Gender:Male
  • Location:Ontario
  • Canada

Okay, well I guess the first issue (and perhaps the only) I'm having, is exporting from OSM.

Here's a screenshot of my Export options. Am I using the wrong panel?

Posted Image
Greg Moore

g r e g @ c a r t o g r a p h i c d e s i g n . c o m
www.cartographicdesign.com

#15
Nick H

Nick H

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 307 posts
  • Gender:Male
  • Location:Caversham, Reading, England.
  • United Kingdom

Looks good, click the 'OpenStreetMap XML Data' radio button, then click 'Export'. Then wait, it can take some time. The file you download will have the extension *.osm and should load into QGIS using the OpenStreetMap plugin.

Regards,
Nick.
Caversham, Reading, England.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->