DIY Mapping
for Librarians
Atlantic Provinces Library Association
Pre-Conference Workshop
May 14, 2013
Peter Rukavina
Hacker in Residence, Robertson Library
Slide 2
Slide 2 text
Agenda
• Introduction to OpenStreetMap
• Editing OpenStreetMap with web tools
• Editing OpenStreetMap with JOSM
• Making Indoor Maps with JOSM
• From OpenStreetMap to Google Earth
Slide 3
Slide 3 text
OpenStreetMap
• Like Wikipedia, but for a map of the world.
• “Open” means both the underlying data is
available, and that anyone can contribute.
• Often this results in more current maps of
better quality and coverage than
commercial mapping companies.
• Rich set of map-making tools.
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
No content
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
OpenStreetMap
Concepts
• Point (a single point on the map)
• Line (road, path, etc.)
• Area (building, park, farm, etc.)
• Lines and Areas are also know as ways
in OpenStreetMap parlance.
Slide 10
Slide 10 text
Editing OpenStreetMap
• Sign up for a free account and login.
• Find an area you’d like to map.
• Click Edit | Edit with iD
• Click on a feature to edit or,
• Add a point, line or area.
• Add metadata.
• Save (and add a comment about what you did)
Slide 11
Slide 11 text
Editing OpenStreetMap
• Sign up for a free account and login.
• Find an area you’d like to map.
• Click Edit | Edit with Potlatch 2
• Click on a feature to edit or,
• Starting drawing points or ways.
• Add metadata.
• Save (and add a comment about what you did)
Slide 12
Slide 12 text
Go Edit Something
Slide 13
Slide 13 text
Editing with JOSM
• JOSM is a “power editor” for OpenStreetMap.
• Runs as a standalone application on your
computer, not in a web browser.
• Much more power; much more complexity.
• The best tool for creating detailed indoor maps.
Slide 14
Slide 14 text
JOSM Basics
• Drag map with the right mouse button down.
• Zoom in and out with mouse wheel.
• Use the OpenStreetMap wiki as a reference for
metadata.
• Use OpenStreetMap itself as a guide: look at
what others have done and follow suit.
Slide 15
Slide 15 text
JOSM Basics
• Click to start drawing a way or a point.
• ESC to stop drawing or double-click to close the
way into an area.
• Use the “little cross marks” to add points to a
way.
Slide 16
Slide 16 text
Select an Area on Startup
Slide 17
Slide 17 text
No content
Slide 18
Slide 18 text
Select and Move
Draw Edit Metadata
Slide 19
Slide 19 text
No content
Slide 20
Slide 20 text
When you’re done...
• Click the “upload” icon to send your
changes to OpenStreetMap.
• Pay attention to any warnings you receive.
Slide 21
Slide 21 text
Go Edit Something
Slide 22
Slide 22 text
OSM Indoor Maps
• The “next frontier” for OpenStreetMap.
• Standards and approaches are “in flux.”
• The tools for outdoor mapping, mainly
JOSM, are well-suited to indoor mapping.
• Rendering indoor maps still in its infancy.
• The “PicLayer” plugin is your friend.
Slide 23
Slide 23 text
No content
Slide 24
Slide 24 text
No content
Slide 25
Slide 25 text
No content
Slide 26
Slide 26 text
No content
Slide 27
Slide 27 text
No content
Slide 28
Slide 28 text
Adjust the Opacity
Select the
PicLayer
Make it less
opaque
Slide 29
Slide 29 text
No content
Slide 30
Slide 30 text
Select the PicLayer
PicLayer Tools Appear
Slide 31
Slide 31 text
Click Green Arrow Choose 3 points on PicLayer
Slide 32
Slide 32 text
Click Red Arrow Drag 3 points to match building
Slide 33
Slide 33 text
Select the “Data Layer”
Slide 34
Slide 34 text
Edit the Building Shell
Slide 35
Slide 35 text
Draw a Room
Slide 36
Slide 36 text
Zoom in for Accuracy
Slide 37
Slide 37 text
Enter Metadata
Slide 38
Slide 38 text
Room Metadata
•buildingpart → room
•indoor → yes
•ref → [room #]
•name → [name of the room]
•height → [height of room in m]
Slide 39
Slide 39 text
Draw a Door
(a single point on the room’s way)
Slide 40
Slide 40 text
Door Metadata
•door → [yes | manual | automatic]
•height → [height of door in m]
•width → [width of door in m]
Slide 41
Slide 41 text
Draw a Window
(a single point on the room’s way)
Slide 42
Slide 42 text
Window Metadata
•window → yes
•height → [height of window in m]
•width → [width of window in m]
Slide 43
Slide 43 text
Go Edit Something
Slide 44
Slide 44 text
What’s Next?
• Assemble all the rooms, windows and
doors on a level into a level “relation”.
• Assemble all the level relations into a
“building” relation.
Slide 45
Slide 45 text
No content
Slide 46
Slide 46 text
No content
Slide 47
Slide 47 text
http://indoorosm.uni-hd.de
Slide 48
Slide 48 text
From OpenStreetMap
to Google Earth
• Select the object(s) you want to export.
•Edit | Copy
•File | New Layer
• Select the new layer.
•Edit | Paste
Slide 49
Slide 49 text
Save the Layer as a .osm file
Slide 50
Slide 50 text
Convert the .osm file
with GPSBabel
Slide 51
Slide 51 text
Load the .kml file into
Google Earth
Slide 52
Slide 52 text
Edit the Routes
Edit the
Altitude
Check “Extend path to ground”
Slide 53
Slide 53 text
No content
Slide 54
Slide 54 text
Google Sketchup
• Install the OpenStreetMap Plugin
• Import the .osm file you exported from
JOSM