Collecting Spatial Data Using OpenStreetMap (OSM) (Beginner Level)
Collecting Spatial Data Using OpenStreetMap (OSM) (Beginner Level)
License
http://creativecommons.org/licenses/by/3.0/au/deed.en_GB
http://bnpb.go.id
http://aifdr.org
http://hot.openstreetmap.org
http://ugm.ac.id
Collecting Spatial Data using OSM Beginner Level is a step by step guide
designed to help anyone get started with OSM, no matter what skill level you are
starting from. While it might seem daunting at first, OSM is simple enough that
anyone can get started creating maps, and as your understanding grows you'll find
that you can do more and more interesting things.
This guide makes few assumptions. It assumes you have used a computer before,
and that you have an email address. If you don't have an email address, we
suggest you have a friend help you sign up for one. There are many websites
where you can get a free email address, such as www.gmail.com or
mail.yahoo.com.
The only other assumption is that you've used the internet before. Perhaps you're
familiar with Facebook or email, and that's certainly enough to get started with
OpenStreetMap. If you're already comfortable using a computer and surfing the
web, don't worry – this guide is for you too. No matter your proficiency, we'll take
you step by step through OSM and you'll be mapping in no time!
Learning Objectives
Maps are a good way to convey information. Maps are visual representations of
our world. They can often demonstrate an idea better than words. This in turn can also
help answer important questions. Where is the closest school or hospital? Who has the
least access to these facilities? Where is poverty the most problematic? Questions like
these can often best be expressed with maps, and maps can help find solutions to these
questions.
Draw a Map
As an exercise, get a pen and paper and draw a map of your town or village.
What are the most important things to include on the map? What is the most important
information? Spend a few minutes making your map, and when you’re finished, think
about why the information you included is important, and who it might be important to.
Examples of Symbols.
Your map is informative. You might use a map like this to explain to someone
where different places are, where problems are in your community, or merely to help
someone find their way around. The uses of your map is limited though. There is only
one copy of the map and the way you drew it may make sense to you, but perhaps not to
someone else who would have drawn their own map in a different way. Because your
map is merely on paper, it is difficult to get that information to others. This is why
making your map on a computer, in such a way that anyone can access it, can be much
more valuable.
Why digital?
OpenStreetMap is a tool for creating and sharing map information. Anyone can
contribute to OSM, and thousands of people add to the project every day. Users draw
maps on computers, rather than paper, but as we will see in this guide, drawing a map on
a computer is not all that different from drawing on paper. We still draw lines to
represent roads, fields, and anything else, and we still represent schools and hospitals
with symbols. The important thing is that OSM maps are saved on the internet, and
anyone can access them at any time, totally free.
In the optional module at the start of this training, we used a file that contained
buildings in Jakarta. This data came from OpenStreetMap. While no single person could
have mapped 13,000 buildings, many different people contributing just a little bit at a
time provided us with a data file that allows us to do very impressive analysis, and help
an entire community prepare for the next time there is a flood. In this sense, the work is
somehow cyclical. The community contributes data so that emergency managers can
design highly effective contingency plans, and those plan may then be used to benefit the
In this unit, you will learn how to make a digital map. You will learn how to use
the OpenStreetMap platform, and you will make your first edits and additions to the
worldwide map.
Learning Objectives
In this module we will learn step by step how to navigate the OpenStreetMap
website, view and print maps, and sign up for a user account. After you have your own
username and password, you will be able to add your first points to the map.
● Be sure that your computer is on and you are connected to the internet.
● To visit the OpenStreetMap website, you need to open your web browser. Start your
browser - Firefox, Chrome, Opera, or Internet Explorer.
● In the address bar at the top of the window, enter the following text:
www.openstreetmap.org
● When the page has finished loading, you should see something like this:
● The main thing you should see is the map. Move the map by clicking on it with your left
mouse button, holding the button down, and dragging your mouse around.
● If you have a mouse with a scroll-wheel, zoom in and out on the map by turning the
wheel. If you don’t have a scroll-wheel, use the + and - buttons on in the upper right
corner of the map.
● To search for a place, left-click in the box labelled “Search” on the left side of the page.
Type in the name of your town or village and press “Enter”. A window should appear to
the left of the map with the results of your search. Click on the location that looks like
the one you want. The map will automatically move to the location you chose.
● If you want to save an image from OpenStreetMap that you can easily print, follow these
instructions.
● Just above the map, click on the button labelled “Share” on the right side of the map.
- In the Image section, check "Set custom dimensions" if you want to manually
specify which area you want to download. If you do not select the option, then
the area that will be downloaded to adjust the map you're currently on.
- You can download the image in PNG, JPEG, SVG or PDF format according
to your needs.
- You can also determine the scale of the map that will be downloaded by
entering the scale rate.
● Then click "Download". The download process will start. It will be stored in your
computer.
● Open the file that you have downloaded. If you want to print, you can select "Print" from
the "File" menu, after you connect your computer to a printer.
● Now that you have seen what the main website looks like, you can register for a
username and password and make your first additions to the map.
● Go back to the OpenStreetMap website. Click “sign up” in the top right corner of the
page.
● You should see a new page that looks like this:
● There are five boxes on this page that you need to fill in to register an account with OSM.
● Enter your email address in the first two boxes. You should enter the same email address
in both boxes. Later, you will need to open your email to confirm your account with
OpenStreetMap.
● In the third box, enter the username that you would like to have. You will not be able to
choose a username that someone else has chosen before, so it should be creative. If you
try to enter something simple, like your first name, it is likely that someone has already
claimed that name.
● Enter a new password in the fourth and fifth boxes. You should enter the same password
in both boxes. It does not need to be the same as the password for your email.
● You will want to remember your user name and your password so that you can login later.
You may want to write down your OSM username and password.
● After you have completed all the boxes, click “Continue” at the bottom of the page.
● If there are any problems, an error message may pop up. Check to make sure that your
email is the same in the first to boxes, and your password is the same in the bottom two
boxes. If the third box is highlighted red, it means that someone else has already chosen
your username, and you should try a different name.
● Open a separate window or tab in your internet browser, and navigate to your email.
Common email sites are mail.yahoo.com and gmail.com.
● A new tab or window will open. If everything went well, you should have an OSM
account!
● On the OpenStreetMap page, click “log in” in the top right corner. Enter your
OpenStreetMap username and password and press Enter. You should now be logged in.
You should see your username in the upper right corner of the page.
● Now that you are logged in with your username on the OpenStreetMap website, you can
use the Potlatch editor to add your first point to the map.
● Move the map to a place that you know very well, such as your town or village.
● Zoom in to a place where you would like to add a point to the map.
● Just above the map on the left, there is a tab marked “Edit”. Hover your mouse over this
button, but don’t click. You should see a menu drop down.
● Click “Edit with Potlatch 2 (in-browser editor)
● The online editor for OpenStreetMap should open. If a window pops up, press “OK”
● You can add a point to the map by clicking on an icon on the left, and dragging it to its
location on the map. After you add the point and are satisfied that it is correct, click
“Save” in the upper right corner.
● NOTE: If you are not sure about the accuracy of the point(s) you add, don’t click
“Save”! Play around with the Potlatch editor, but don’t save your changes.
Learning Objectives
● Download JOSM
● JOSM Installation
● JOSM Preferences
● Using Basic Tools
● Drawing nodes, way, and shape in JOSM based on map that you made in the previous
session
● Change Objects
● Add informations to the objects using ‘presets’ menu
In this module we will learn step by step how to download and install JOSM, the
Java OpenStreetMap editor. We will change some of the settings in JOSM to make it
easier to use. Then we will open a sample map and learn some of the basic operations of
the software. Remember in Module 1 when we asked you to draw a map of your town or
village? We will conclude this module by drawing your map again, this time digitally.
After this you should have a good understanding of how to draw maps in JOSM.
1. Download JOSM
● There is a copy of JOSM in the software/ folder that of the package that accompanies this
guide. If you don’t have this or would like the most up-to-date version, follow the
instructions here. Otherwise skip to section 2. Install JOSM.
● Open your web browser - this may be Firefox, Chrome, Opera, or Internet Explorer.
● In the address bar at the top of the window, enter the following text and press Enter:
josm.openstreetmap.de
2. Install JOSM
● You may have problems installing JOSM if Java is not already installed on your
computer. You can install Java by running jre-7u21-windows-i586 in the software/
folder. You can also download it here:
http://www.java.com/en/download/
● Find the JOSM install file on your computer. It should be named josm-setup.exe.
Double-click it to begin setup.
● Click ‘OK’, ‘Next’, ‘I Agree’, and ‘Install’. When the installation is complete, click
‘Finish’ to launch JOSM for the first time. Later, when you want to start JOSM, you can
do so by clicking on the Start Menu in the lower left corner of your computer, and
clicking the program JOSM.
● You may see a window pop up that asks if you want to update the software. You don’t
need to update it since it is new. Press the button that says “Cancel.” If you don’t ever
want to see this message again, check the box at the bottom before pressing “Cancel.”
● When JOSM starts, it will look something like this:
● Before we begin using JOSM, it’s a good idea to change some of the settings so that is
will be easier to use. To change the settings, click “Edit” on the top menu, and then click
“Preferences.”
● You should now see “Bing Sat” in the list below the Activate
button.
● In the plugin window, first you need to download the plugin list
by clicking "Download list". It will takes a few minutes.
● After the plugin list appears, type the name of the plugin you
want to download in the "Search".
● Now let’s open up a sample OSM file which we will use to learn the basic ways to draw
maps with JOSM. Note that this map is not real, in that it is not a real map of a real place,
so we will not save it on OpenStreetMap.
● The file is located in osm/ and is named sample.osm.
● Let’s open the sample map file in JOSM. Open JOSM. Click the “Open” button in the
upper left.
● To move the map left or right, up or down, hold your right mouse
button down, and move your mouse.
● There are several ways to zoom in and out of the map. If you
have a mouse, you can use your scroll wheel to zoom in and out. If you are
using a laptop and don’t have a mouse, you can zoom in and out using the
scale bar in the upper left of the map window. Drag the bar left and right by
holding your left mouse down and moving the bar left or right with your
mouse.
Now, let’s try to practice drawing an object (point, line and shape).
● Select the forest on the left side of the map. Be sure to click on
the line around the forest, not one of the points on the line. Now hold your
left mouse button down and drag your mouse. You should be able to move
the forest to a new location on the map.
● Click on one of the points on the line around the forest. Hold
your left mouse button down and drag your mouse. You should be able to
move the point. This is how you can change the shape of an object, or move a
point.
● Now we know how to draw points, lines and shapes, but we still
haven’t defined what they represent. We want to be able to say that our points
are shops, schools, or something else, and whether our shapes are fields,
buildings, or something else.
● Click on the Select tool, in the column of buttons on the left.
● Select one of the objects that you drew with the Draw tool. On
the top menu, click “Presets”. Move your mouse through the sub-menu to the
type of location you would like to define.
● When you click on a preset, a form will pop up asking you for
more information. You do not have to fill in every field, but you may wish to
add some of the important fields, such as the name of the object.
Exercise:
● Now let’s draw a map in order to practice the techniques you have learned. You may wish
to redraw the map that you drew on paper in Module 1.
● Drag the map away from the sample map. Hold the right mouse button and drag your
mouse, until you have a nice empty area to draw on.
● Use the Draw tool to create points, lines, and shapes. Describe what your objects are by
selecting from the Presets menu.
● When you are finished, you should have your own map, similar to the sample map that
we opened in sample.osm.
Learning Objectives
In this module we will see what a GPS does and how it works. You will learn
how to operate a GPS, and how to use it to create maps. In this module we will explain
how to operate the Garmin eTrex Vista HCx, a common GPS used for mapping. There
are many other models of GPS which do the same thing, so if you are working with a
different one, don’t worry - the principles remain the same.
1. What is GPS?
A GPS is like a mobile phone, except that instead of receiving radio signals from
telephone companies, it receives signals from satellites that are going around the Earth.
By receiving these signals from the satellites, a GPS is able to calculate your exact
location on the planet. It records this location in coordinates, which are two long
numbers. One number tells you how far East or West you are - this is called longitude.
The second number tells you how far North or South you are - this is called latitude.
Every place on Earth has unique geographic coordinates.
● Before you turn on your GPS, go outside where you have a clear view of the sky.
Because the GPS determines your location by receiving signals from satellites, it won’t
work indoors.
● On the right side of your GPS, press and hold the Power button. The GPS will start, and
it will show you the Satellites page. You should see something like the image below.
Your GPS is looking for satellite signals. When it has connected to three or more
satellites, it will have your location.
3. GPS Setting
● Access the Setup menu on the Main Menu by using the Page
button. Then go to the System.
a) GPS: regulate how the GPS sensor work. Choose the "Normal" option.
The device captures only the signals from the GPS satellites. But your
position accuracy sometimes less accurate (about 10-30 meters).
Access the menu Setup > Units. In this menu, you can manage want to
display units. For examples, in meter, feet, and other. You can also manage position
format (decimal degree, decimal minutes degree, second minutes degree), datum
(standard WGS 84) and projection (standard WGS 84).
Access the menu Setup > Time. You can manage time format (12 hours or
24 hours) and your time zone.
Access the menu Setup > Page Sequences. You remember about function
Pages button ? You can manage pages function often your use, so you do not a lot of
pressing a button to access the page function. You can press the Page button several
times to page you want access the function. You can add page function with select
Add Page then select function such as: Tracks (to see details of your trip), Map (to
view maps), Satellite (to view the status satellite, position, and accuracy).
Access Tracks menu. Do you remember the track function? Tracks can
record your track ride, it is very useful for mapping the road. In the menu there are a
few settings such as:
● Track Log:
a) “On” - track record, track trail will be visible on the map. Make sure the
setting is selected before you start mapping.
● “Wrap When Full”: Put a check in this option. GPS device can
save automatic your track, after out of memory.
● Record Method:
● Interval:
This setting decide how often the GPS will record your track ride. Often you
record your track make produce a line of track is smooth and tidy but will
● The GPS has different screens and menus that allow you to do different things. To switch
between screens, press the button marked “X”, just above the power button on the right
side of the device. This button also serves to go back. If you press something by mistake
and would like to cancel or go back, press the “X” button.
● By pressing the X button, you should be able to flip through different screens that will
look something like this:
Your GPS records two kinds of information that are useful for creating maps or
saving the coordinates of a place. First, it allows you to save your location in the memory
of the GPS. When you save a location, the coordinates will be saved with a name. For
example, your first saved point will be named 001, the second 002, and so on. When you
save a point, you can write down the number on a piece of paper, along with a note about
what it is, any any attribute or indicators you would like to know. Saved locations on
your GPS are called waypoints.
Second, your GPS can save what are called tracks. While a waypoint only saves a
single location, a track will save a series of locations wherever you move. For example,
the track will record your location every one second, or every one meter, and the result
will be a series of dots that show the path of where you have been. Tracks are useful for
mapping objects that are represented by lines or shapes, such as the course of a road, or
the shape of a field.
Here the points are numbered in the order they are recorded.
The path or “track” is shown in green line and the “waypoint” is shown in red.
● To save your current location as a waypoint, click the “X” button until your reach the
Main Menu. Using the joystick, move it so that “Mark” is highlighted on the screen.
Push the joystick button down to open the “Save Waypoint” page.
● You can see on this page some information about the waypoint that you are saving. First
is the name. If this is your first waypoint, it probably reads “001”. This is the number
● Now that we have learned how to save points, let’s learn how to turn the track log on and
off. When the track log is turned on, it will automatically record your path. It’s good
practice to turn on the log when you begin mapping, and turn it off when you are finished.
You will then be able to look at the track on a computer and see the path that you mapped.
If you would like to map the course of a road, it is a good idea to save a waypoint at the
beginning and end of the road, writing in your notebook the name and type of the road,
and any other important information about the road.
● To turn on the track log, click the “X” button until your reach the page that says Track
Log.
● If you would like to empty the track log to delete earlier recordings, use the joystick to
select “Clear”, and press the joystick down. The bar at the top should read “0%”.
● To turn on the log, move the joystick to highlight “On”, and press the joystick down. The
track log is now recording your path.
● Under the “Set up” option, you also can set time or distance intervals to track. Time
intervals instruct your GPS to record your location at given intervals. If you have a
memory card in your GPS, it is good practice to set this to 1 second, meaning that every
second your location will be added to the track log. This may be useful when detailed
surveys are needed.
● When you are finished mapping with the GPS you will want to
copy the points and tracks to your computer so that you can open them in
JOSM. First, turn off the track log on your GPS, by going to the track page
and selecting “Off”.
● Attach the GPS to your computer with the cable. One end should
plug into your computer’s USB port, and the other goes into the back of the
GPS, beneath the rubber flap at the top. The GPS should be turned on to
copy the points and tracks.
● Click in the circle next to the word “Device” at the top of the
window.
● Click “File Name” and type a name for your saved file. It should
be something that describes the data, such as the date and the location. For
example, jakarta-07-07-2011.
● Make sure your GPS is connected to the computer and turned on.
● Click “Apply” in the bottom right corner of the window.
● If all goes well you should see a bar move across the screen,
indicating that the data is being retrieved from the GPS. When it is finished,
your points and track will be saved in the file that you selected.
● Now open JOSM. On the top menu, click “File” and then click
“Open...”
● Find and select the file that you created with GPSBabel. Click
“Open”.
● You should now see your points and tracks loaded into JOSM.
Adding GPS tracks and waypoints to the OSM server is very useful for many
reasons / goals. (If you don’t want your GPX data is seen by others, you don’t need to
read this section. You just show your GPX Data on JOSM locally on your computer).
First of all, it should be understood that the tracks GPS is the most helpful way to
collecting data and georeference (provides geographic/spatial references) objects in the
OSM. Upload GPX tracks to the server allows you to share more information. Other
people who don’t have access, who can’t reach the location or because of the limitations
of GPS, they can still obtain information of data without the need to stay / settle on that
location and do not need to rent a GPS.
The easiest way to upload GPS tracks is to download the plugin "DirectUpload":
● Describe your GPX file, write multiple tags, and visibility. On visibility option, you can
chose “private”, “public”, “trackable”, atau “identifiable”:
1 Private: tracks will not appear on the public track list.
Trackpoints are accessible at different times through the GPS APIs public
without time stamp.
2 Public: your tracks will be visible to the public (general) on your
GPS tracks and GPS tracks on the public list. Other users can still download
● Click <<Upload Trace>>. If requested to enter a username and password, you can enter
the username and password of the account OpenStreetMap and check the "save user and
password" then click “Authenticate”.
After you successfully open and upload the GPS data, you must enter the GPS
data as the field result into OSM server. The following way:
● Open a file gpx results of your field data back using JOSM.
● Click File - Download from OSM, You don’t have to re-draw the box to download
because JOSM been reading your region according to the GPS layer automatically. Click
“Download”.
● After you have finished editing OSM data, don’t forget to upload the data to the OSM,
click File - Upload Data.
Learning Objectives
In this module we will see how we can record the coordinates of places without a
GPS. We will use a tool called Field Papers, which allows you to print a map of an area,
draw on it and add notes, and load the paper back into JOSM, where you can add your
locations to OpenStreetMap.
Before going into detail about Field Papers, let’s look at an overview of how the
process works:
Step 1: Locate the area you want to map on the Field Papers website. Print out a
map of this area. You can choose to print the current map of the area with
OpenStreetMap, or you can choose to print aerial imagery, if it is available in your
area.
Step 2: Use your printed map to survey the area. Add more places by drawing them
on the map. Draw lines for roads, shapes for buildings, and so forth. Write notes
about each location directly on the map, or write numbers on the map that relate to
numbers in your notebook, where you can write more detailed information about each
object.
Step 4: In JOSM, load the Field Papers. Use the objects you drew as a reference to
add them digitally into OpenStreetMap.
If you follow the Field Papers process described above, you will be collecting
accurate geographic coordinates of places with nothing more than paper. How is this
possible?
When you print a Field Papers, the paper comes with a square barcode on the
bottom of the page. This bar code allows Field Papers to determine the exact location of
the map that you are using to survey. Later, when you load the paper back into JOSM, all
the objects that you drew will be in shown in their actual locations, or at least quite close,
which is good enough for us.
● Open your web browser - this may be Firefox, Chrome, Opera, or Internet Explorer.
● In the address bar at the top of the window, enter the following text and press Enter:
http://fieldpapers.org/
● Now you are presented with an interface where you can define the boundaries of your
Field Papers. The map that you see shows the area that you would like to print on paper.
You can print multiple pages, zoom in and out, and drag the papers to cover specific
boundaries on the map.
● We can expand or decrease the area of the papers by dragging the button in the lower
right corner.
● You can move the paper by clicking and dragging the button in the upper left corner.
● You can adjust the paper orientation and type of map using the controls at the top.
● When your print is ready, scroll to the bottom and click “Download PDF.” The Field
Papers should begin downloading. If it loads in your browser, you may need to save it
by going to File -> Save.
● When the download is finished, open the PDF file. Connect your computer to a printer
and print the page. If everything goes well, you should now have your map printed on
paper.
● Take your Field Papers outside, and use it as a guide to walk and identify new places that
are not on the map.
● Draw lines for roads, shapes for buildings, and so forth. Write notes about each location
directly on the map, or write numbers on the map that relate to numbers in your notebook,
where you can write more detailed information about each object.
● When you are satisfied with your additions on the paper map, then you can add them
digitally into OpenStreetMap.
● Field Papers are very useful for mapping with nothing more than paper, but they are not
100% magic. We will still need to add our paper into JOSM, add our information
digitally, and save our changes on OpenStreetMap.
● The first step is to scan your Field Papers into your computer. You can do this by
attaching a scanner to your computer, scanning the paper, and saving it as an image file.
If you don’t have a scanner, you can take a photography of the paper, but you should be
carefully to take a very good photo. Make sure that the paper is flat and your camera is
directly in front of it. Be sure to include the barcode in the image, as Field Papers will
not work without it. Here is an example of a scanned/photographed image:
● Once you have your Field Papers scanned and saved on the computer, open your web
browser and return to http://fieldpapers.org/, just as before.
● Click on the “Upload” tab at the top of the page.
● You’ll be able to add additional notes to your Field Papers, but we will skip this for now.
Click on “Finished.”
6. Open in JOSM
● When your scan have been processed, now you can add the results of your scan in JOSM
and add your information to OpenStreetMap. To display Field Papers scan result in
JOSM, you can use the fieldpapers plugin.
● Open JOSM and Click Edit - Preference
● Chose Plugin box and type ‘fieldpapers’ on the “Search” box. After it was found,
put checks on the fieldpapers box - Click OK - then Restart your JOSM.
● Then select Field Papers according with the scans results that have been uploaded.
● If you've found an image that correspond to the scan results, click on the image until the
url appear as shown below, copy the URL for example
http://fieldpapers.org/snapshot.php?id=67v87z5n#18/-5.15534/119.43913 and paste on
Field Papers menu ini JOSM.
● Please wait a moments until Field Papers map appears on your JOSM layer.
● Currently you have Field Papers layers that can be used as a reference to add OSM data
according to field result (survey) that has been done. It is important to remember to edit
the data we need to download OSM data first by clicking File - Download from OSM.
You don’t have to re-draw the box to download because JOSM been reading your region
according to the Field Papers layer automatically. Then Click “Download” to download
that area.
● Now you have finished adding OSM data according to field result (survey) that has been
done.
Learning Objectives
In Module 3 you installed JOSM and began drawing your first points, lines, and
shapes. You added presets to these objects in order to attach information about them. By
the end, you were able to draw your own map in JOSM.
Drawing maps in Module 3 was an exercise to learn JOSM and learn how to draw
places on the map. But our maps were not accurate, because we had not yet included
location. In the past two modules we have examined two tools, GPS and Field Papers,
which allow us to collect actual locations of places (Generally, GPS receivers determine
your location within +/- 10 meters, so they may not be completely accurate, especially if
you only take one waypoint). These locations are represented by coordinates.
Drawing a real map, that is, a map where all the points, lines, and shapes are in
their proper location, is no different than drawing the maps we drew in Module 3. But
now, we will use our GPS points and tracks, and our Field Papers, to draw similar maps
at their correct locations on the planet.
In this module we will learn how to edit the map on OpenStreetMap and add our
improvements. We’ll learn the basic cycle of mapping on OSM:
1. Explore JOSM
3. JOSM Layers
4. Edit Tag
5. Common Problem
1. Upload Changes
By the end of this module, we will be able to see our additions on the OSM map.
1. Explore JOSM
● First, to start JOSM click on the Start Menu in the lower left corner of your computer, and
find the program “JOSM”.
● Then, load your gpx file and your Field Paper in JOSM. You don’t need to open both, but
you can if you want. Refer to the previous two modules if you don’t remember how to
open these in JOSM.
● A quick tour of JOSM’s features: JOSM has many different features. The main window
in JOSM you are already familiar with- this is the map window, and it is where most of
the action takes place. Here you view, edit, and add to the OpenStreetMap data.
● To the right of the map window are a series of panels, which each do something different.
Typically when you first install JOSM several panels are shown by default, such as
“Layers”, “Properties”, and “Selection”. When you select a point, line, or shape in the
map window, it will be shown in the “Selection” panel. Information about the object will
be shown in the “Properties” panel, and the username of the author of that object will be
shown in the “Authors” panel.
● When the download window opens, you should see a map with a
pink box drawn on it. If you don’t see the map, click on the tab marked
<<Slippy map>>.
● The pink box represents the area of the map that we would like to
download for editing. Unless you have moved the map window since you
opened your GPS file or Field Papers, the box should be drawn around the
correct area. However if you would like to download a larger area, you can
draw a new box. To draw a new box, click on the map, hold your left mouse
button down, and drag your mouse to create a box. Release the mouse button
to finish drawing the box.
● When you are satisfied with the size and location of the box,
click “Download” at the bottom of the window. JOSM will get the data for
this area from OpenStreetMap and open it in your map window for editing.
● Open your GPS file and downloaded data from OpenStreetMap, if you haven’t already.
You may notice that when you open a file, or add Field Papers, or download from
OpenStreetMap, another item is added to the “Layers” panel on the right side of JOSM.
Your “Layers” panel may look something like this:
● Each item in this list represents a different source of data that you have open in your map
window. In the example above, “Data Layer 2” is the OpenStreetMap data that we want
to edit. “Markers” are the waypoints from the GPS, and “30 Juni 2011.gpx” is the track
from the GPS. Finally, “Field Papers” is the layer created when I added my Field Papers
into JOSM. You can add the Bing imagery layer, which shows satellite imagery, by
clicking <<Imagery>> on the top menu of JOSM and selecting <<Bing Sat>>.
● To hide one of these layers, select one of them with your mouse and click the
3. Edit
● The next step is to edit the map and add new items. This is not always easy at first, but
with practice you will get better and better. Note that you can select various tools in
JOSM by clicking on their icons, or you can use buttons on the keyboard as shortcuts.
The shortcut keys will be indicated in parentheses below.
● If you want to move a point, line, or shape, use the “Select tool” (s). Click on an object
and drag it where it should be. This can be used to correct the location of items that have
been put in the wrong place.
● Remember that your GPS points and your Field Papers don’t automatically go into
OpenStreetMap. You need to add them to the OSM map digitally, using the “draw tool”.
But your points, tracks, and Field Papers can be seen in the background as a guide.
● Let’s assume that you saved a waypoint on your GPS named 030, and you wrote in your
notebook that 030 is a school. To add this point into OpenStreetMap, you should select
the “draw tool”, and double-click on top of point 030 in your map window. This will
create a point. Then go to the “Presets” menu, and find the preset for school. Enter the
name of the school and click “Apply Preset”. Do the same to add lines and shapes.
4. Tags
● When you draw a point, line, or shape, it has a location, but no information about what it
is. In other words, we know where it is, but not what it is. Before now, we have been
using items from the “Presets” menu to define what it is. The way OpenStreetMap
knows what an object is is by using tags.
● A tag is like a label that you can put on something. For example, if I draw a square, it’s
only a square. But then I add multiple tags to it that describe what it is: this square is a
building, the name of the building is “Menara Thamrin”, the building is 16 levels high.
● You can add as many tags as you want to an object. Tags are saved as pairs of text, called
the keys and the values. In OpenStreetMap, the tags written above would in fact be:
building = yes, name = Menara Thamrin, building:levels = 16.
● If you select an object in JOSM, you can see all the tags that are attached to it in the
“Properties” panel on the right.
● You can add, edit, and delete these tags from this panel. The tags
are traditionally in English however, so it is often better to use the “Presets”
menu. When you add or change tags, such as primary highway versus
footpath, the style will change according to the tag.
● To edit an existing object:
1) Select it.
2) Edit the tags in one of two ways: (1) You can use the “Presets” menu to
open up a form and edit the information, or (2) you can edit the tags
directly in the “Properties” window on the right.
4.2. Common Mistake: Tagging Nodes When You Want to Tag Lines or Polygons.
● When you are adding tags to a node, you select the node and then
add your tags (or use the “presets” menu). When you want to add tags to a
line or polygon, it is important that you select the line, and NOT the nodes
that make up the line.
● A common mistake is to use the JOSM select tool to draw a box
around an object, which causes everything, both the line and the nodes to be
selected, and when you add tags they are applied to the nodes as well. Be
sure to only select lines when you want to add tags to them.
● After you have made a couple of changes to improve the map, let’s save those changes to
OpenStreetMap. To save the changes, we need to be connected to the internet, because we
are in fact uploading the changes to OpenStreetMap.
● Click <<File>> on the top menu, and then click <<Upload Data>>. This will open up the
upload window. You can access this window more simply by clicking on the upload
button, shown here:
● The window that appears shows a list of the objects that you are adding and the objects
you are modifying or deleting. In the box at the bottom you are asked to provide a
comment about the changes that you are making. Type in here a description of your edits.
After changes we are doing have been uploaded, now let's look the changes on
the OpenStreetMap Map with the following steps:
● Sometimes after you download some OSM data, you may wish to save it so that you can
edit it offline, and then upload it later when you have internet access again.
● To save an OSM file, make sure that it is the active layer in the the Layers panel. Click
“File” on the top menu, and click “Save”. Choose a location for the file and give it a
name. You can also save by clicking this button:
Learning Objectives
Using aerial imagery is the most widely used approach in making maps with
OpenStreetMap. Mappers typically use Bing satellite as a background layer while
making their maps, or imagery from another provider. We have already seen this in
action. In this module we will learn a little bit more about aerial imagery, and we will
learn how to solve the one important problem of using aerial photographs - imagery
offset.
2. Part of Imagery
In the module on GPS we learned about the dozens of satellites orbiting Earth
which allow our GPS receivers to identify our latitude and longitude. In addition to these
GPS satellites, there are also satellites which take photos of the earth. These photos are
then manipulated so that they can be used in GIS (mapping) software. Bing Aerial
Imagery is made up of satellite photos.
2.1. Resolution
All digital photographs are made up of pixels. If you zoom in very close on a
photograph, you will notice the the image starts to get blurry, and eventually you’ll
see that an image is made up of thousands of little squares that are each a different
color. This is true whether the photograph is taken with a handheld camera, a mobile
phone, or a satellite orbiting Earth.
Resolution refers to the number of pixels wide by the number of pixels high
that an image is. More pixels means higher resolution, which means that you are able
to see greater detail in the photograph. Resolution in handheld cameras is often
measured in megapixels. The more megapixels your camera is able to record, the
higher the resolution of your photos.
Aerial imagery is the same, except that we usually talk about resolution
differently. Measurement is important with aerial photographs - hence, a pixel
represents a certain distance on the ground. We usually describe imagery as
something like “two meter resolution imagery,” which means that one pixel is
equivalent to two meters on the ground. One meter resolution imagery would have a
higher resolution than this, and 50cm resolution would be higher still. This is
The higher the resolution of an aerial image, the easier it is to use in making
maps.
2.2. Georeferencing
In unit four we will learn how to georeference an image ourselves, but for
now that’s not necessary. We can happily use Bing imagery to help add to
OpenStreetMap, so long as we understand a little bit about the imagery we are using,
and so long as we are aware of one common pitfall - imagery offset.
3. Imagery Offset
We’ve learned about two major ways of making maps - one is by utilizing aerial
imagery to identify features on the ground, and another is by using GPS to record tracks
and waypoints and then add them to OpenStreetMap. The advantage of aerial imagery is
obvious. It enables you, the mapper, to see the whole picture, to observe various details
from the image, consider your knowledge of the area, and easily trace roads, buildings,
and areas. One key advantage of GPS however, is that it doesn’t suffer from offset like
imagery. A GPS will always provide you with a correct latitude and longitude. The only
exception is when the satellite signals are interrupted by tall buildings or mountains, but
in this case it is easy to recognize the error. Observe the GPS trace in this image,
compared with the Bing aerial imagery layer beneath it:
Because of what we now know, it is clear that the GPS trace is likely to be
accurate, and the image beneath it is out of place.
So now we must ask, “if the imagery may be out of place, how can we still use it
and make accurate maps?”
The answer to the preceding question is that we can move the imagery so that it
aligns with things that we know are in the correct location, such as GPS tracks. It is easy
to correct imagery offset in JOSM.
The best references for adjusting imagery are GPS tracks that follow roads. And
the more GPS tracks that you have to reference, the more accurate you will be able to
align your imagery. Since OpenStreetMap users often upload their GPS tracks to the
OSM database, we can download them and use them to align our imagery.
● Check the box next to “Raw GPS Data” near the top of the Download window. Select
your area and click “Download.”
● This will download an additional layer to JOSM containing GPS tracks. Depending on
how many tracks have been uploaded by OSM users, you may see few tracks (or even no
tracks):
● Ignoring the box that pops up, use your mouse to drag the imagery layer so that it aligns
correctly with the GPS tracks. The GPS tracks should line up with the roads on the
imagery as closely as possible. You will see the offset numbers in the box change.
● If you like, you can save these offset settings by entering a bookmark name and then
clicking OK. You can then automatically apply the same settings later by going to
Imagery ‣ Imagery offset and clicking on your bookmark.
● If you do not want to save the offset, simply click OK without entering a bookmark name.
What if there are no GPS tracks on OpenStreetMap, and you don’t have a GPS?
Without GPS tracks, it is difficult to align imagery. If it is a relatively empty area (not
much mapping done), you might choose to simply use the imagery as it is and correct the
data later. It’s better to have map an area 20 or 30 meters offset than to not map at all.
● First, identify the object whose position you know on the imagery.
● Click on the latitude and longitude in the bottom left corner of JOSM.
● In the dialog that opens, enter the latitude and longitude of the place that you know, and
enter a small number for Zoom, about five or ten.
● This will zoom and center the map to your longitude and latitude. Now you can move the
imagery as you did previously so that the feature you know is centered at the correct
position.
If, on the other hand, the area has already been extensively mapped, then
hopefully the previous mappers have drawn objects in their correct locations. In this
case, you can align the imagery to the OSM map, but beware! Other mappers may not be
aware of imagery offset, and they may have made mistakes when they mapped.
Now you know how to watch out for and correct imagery offset, but there is
one major problem with this approach that we have overlooked thus far. If every
OpenStreetMap user adjusts the imagery differently, everybody will be mapping with
slightly different backgrounds.
Imagine that you are mapping a small town, and you realize that Bing
imagery is offset by 15 meters to the north. So you adjust the imagery and then use it
For this reason it is important that all users are aware of imagery offset, and
should always check for it before mapping an area. To help with this problem, some
smart people created a plugin that allows users to save offset information in a
database and share it with others. Let’s see how this works:
tab.
● Find the plugin named “imagery_offset_db” and check the box
next to it.
● Click OK. You will need to restart JOSM to finish the plugin
installation.
In the same way that you are able to save offsets as bookmarks, this plugin
allows you to save offsets to a central database, and to access the offsets that other
users have created. Hence, if one mapper creates an imagery offset in an area, other
users can use the exact same offset to map with.
When using aerial imagery layers, you should ALWAYS check for existing
offsets, and when you create your own offset, you should ALWAYS save it to this
database.
● When you add an imagery layer, the new plugin will alert you
that you should check the imagery database for an existing offset. You will
see an icon with a red exclamation point on it at the top of JOSM, like this:
● Click on the button and the plugin will communicate with the
database to see if there are existing offsets in this area.
● Here we have downloaded OSM data and GPS tracks in Kuta,
Bali, Indonesia. In this case, we have found one existing offset. Click on it
to apply to the map.
● This time when the dialog opens, right-click on the offset and
click “Deprecate Offset.”
Now that we have marked this user’s offset as “deprecated,” we should add
an improved offset to the database.
Oh No! Somebody mapped this area with misaligned imagery, so the area is
not correctly mapped. This will take some time to fix.
Lastly, for more information on the offset database, you can visit the website
at http://offsets.textual.ru/. This lists all the offsets that have been uploaded to the
database, and it also has a cool map feature that visualizes where the offsets are
located, as you can see here:
Learning Objective
After you learn how to add and edit data in OpenStreetMap (OSM), now maybe
you want the data obtained as a back up or if you want the Geography Information
System software that Open Source is Quantum GIS (www.qgis.org).
● The OSM data can be obtained easily by downloading it at the following website:
http://download.geofabrik.de/openstreetmap/
● After appearing at the top of the page look like the sub region divides into countries at
Asia, to get the data you need to click the Indonesian state on the blue table and will
appear like this.
● Then if you want to obtain the Indonesian data with shapefile (.shp) format, you click on
the indonesia-latest.shp.zip link and the file will be downloaded. There are several
You can check the last time data is updated. Please note, the server usually update
the data once every 24 hours, so if you just upload data to OSM, the data does not appear
automatically when you download it but you have to wait for the latest updates from the
server.
If you just want to download a particular specific area with a particular attribute,
you can use the Hot-Exports data download service.
● To obtain the data from this website you must have an account first, if you don’t have
account you must create one. The first step by clicking Create Account in the bottom left
corner, then fill your email, password, and confirmation password, after filling with
complete click Create Account. Then you will see a message like this “A message with
a confirmation link has been sent to your email address. Please open the link to activate
your account.” indicating that your account has been successfully created and you have
your activation email.
● If you have successfully successfully into the website, to obtain the data you want click
New Job, then fill in your name and the job description. Furthermore, to select the area
you are getting, look at the box OpenStreetMap maps of the box you can select the area
you want to get with the highlight area to choose select area with the arrow symbol. Then
click save.
● Then the server will immediately process your request. The process depends on the area
you choose and the server capacity. After that you can select the file format you want to
download such as ESRI Shapefile. All download requests that you create will appear on
the Job. So if any time you want to download on the same area, you can search the name
job for the previous job name that you have created and you can download it again
without having to click on New Job.