-
Notifications
You must be signed in to change notification settings - Fork 181
faq 300810241
by Nodeshee Roopchund on 2018-07-07 04:39:28
Hello,
I want to know how to select only part of a network on OpenStreetMap?I need only a squared area on the map. How to select only this squared area and upload it to my Matsim evacuation network file?
Thankyou
by Johan W. Joubert on 2018-07-07 05:45:08
Hi Nodeshee, I can think of three ways of doing it:
Just go directly to OpenStreetMap, select the Export tab at the top, and then define your square area manually (on the left), or use the `Manually select a different area' link to click-and-drag your area of choice. You can then download that as an
*.osm
file.If you have the [Java OpenStreetMap Editor JOSM you can download only the area you're interested in. Come to think of it, there is a MATSim plugin for JOSM that you access/activate from within JOSM (just search through its plugins).
If you want to automate the process, i.e. have to do it many times as-and-when you update the OpenStreetMap data, like I do with South African networks, you may want to automate it using scripts. For this I find that osmosis is useful. It is a command-line tool that have many functions to manipulate OpenStreetMap data. Two of those functions that might be useful to you is clipping an
*.osm
file, either providing the min and max longitude and latitude, or providing a polygon.
Hope that helps. Best, Johan
by Nodeshee Roopchund on 2018-07-07 06:23:21
Hi Joubert,
Thankyou for your reply. I tried the first way by manually selecting but the select shape is a square? I have uploaded an image of the area that I want to select for my evacuation. Is it possible to select only the square in the image?
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq