iwmw campus maps workshop

63
Campus Maps - Plan A IWMW 2011 Who Digimap ROAM Questions Conclusions 0 90 Confession Next Steps Practical

Upload: addy-pope

Post on 06-May-2015

1.118 views

Category:

Education


1 download

DESCRIPTION

IWMW 2011 Workshop slides that demonstrate how to create campus maps using EDINA Digimap ROAM and open source GIS tools

TRANSCRIPT

Page 1: IWMW Campus Maps Workshop

Campus Maps - Plan A

IWMW 2011

Who

Digimap

ROAM

Questions

Conclusions

0

90

Confession

Next StepsPractical

Page 2: IWMW Campus Maps Workshop

IWMW 2011

Digimap’s Ordnance Survey Collection

Page 3: IWMW Campus Maps Workshop

Map panel

Map tools: measure, annotate, print,

navigate

Hints & Tips

Task menu: Search,

Overview map, Map Content Control, Map Info, MyMaps

IWMW 2011

Page 4: IWMW Campus Maps Workshop

Menus

• Choose to Hide or Display

IWMW 2011

Page 5: IWMW Campus Maps Workshop

Roam

• 13 fixed scale map views• Search options: full postcode, place name, grid

reference• Slippy maps – click and drag• Add annotations• Measure lines and areas• Some views customisable:

– can select which features to display– can select an alternative map data display at the

same scale

• Print in PDF format - A4, A3, landscape or portrait

• Export to JSON........... Soon?

IWMW 2011

Page 6: IWMW Campus Maps Workshop

13 map views, or is it 14?

IWMW 2011

Page 7: IWMW Campus Maps Workshop

National

IWMW 2011

Page 8: IWMW Campus Maps Workshop

Regional

IWMW 2011

Page 9: IWMW Campus Maps Workshop

County

IWMW 2011

Page 10: IWMW Campus Maps Workshop

Metropolitan

IWMW 2011

Page 11: IWMW Campus Maps Workshop

City

IWMW 2011

Page 12: IWMW Campus Maps Workshop

District

IWMW 2011

Page 13: IWMW Campus Maps Workshop

Local Plus

IWMW 2011

Page 14: IWMW Campus Maps Workshop

Local

IWMW 2011

Page 15: IWMW Campus Maps Workshop

Neighbourhood

IWMW 2011

Page 16: IWMW Campus Maps Workshop

Street

IWMW 2011

Page 17: IWMW Campus Maps Workshop

Detailed

IWMW 2011

Page 18: IWMW Campus Maps Workshop

Digimap Training Workshops

Plan

Page 19: IWMW Campus Maps Workshop

Search – Place name

IWMW 2011

Page 20: IWMW Campus Maps Workshop

Search – Place name

London is not a unique search

term, you get to select the

instance that you want to view

IWMW 2011

Page 21: IWMW Campus Maps Workshop

Search – Place name

Local view map returned

IWMW 2011

Page 22: IWMW Campus Maps Workshop

Search - postcode

IWMW 2011

Page 23: IWMW Campus Maps Workshop

Search - postcode

Street view map returned

IWMW 2011

Page 24: IWMW Campus Maps Workshop

Search – 4 figure grid reference

Metropolitanview

SE4182

IWMW 2011

Page 25: IWMW Campus Maps Workshop

Map Information

Map product,

Coordinates,

Print scale

IWMW 2011

Page 26: IWMW Campus Maps Workshop

Navigation

• Zoom in/out– Fishbone– Double click to zoom in– Scroll wheel on mouse

• Drag zoom

• Pan– Click and drag the map– Compass

• Full extent / Previous / Next views

IWMW 2011

Page 27: IWMW Campus Maps Workshop

Map Content Control

Feature selection available in 7 views:

• Plan

• Detailed

• Street

• Neighbourhood

• District

• City

• Metropolitan

2 types of mapping types RASTER and VECTOR

List of layers

IWMW 2011

Page 28: IWMW Campus Maps Workshop

Map Content Control

Uncheck boxes to

remove layers

IWMW 2011

Page 29: IWMW Campus Maps Workshop

Map Content Control

Alternative representation is available in 4 views, style the map for a specific purpose

You can select alternative

themes here

IWMW 2011

Page 30: IWMW Campus Maps Workshop

Map Information

Map product,

Coordinates,

Print scaleIWMW 2011

Page 31: IWMW Campus Maps Workshop

Measurement Tools

• Tools to measure distance/area of map features available

IWMW 2011

Page 32: IWMW Campus Maps Workshop

Measurement tools

• Click the distance tool to activate

•Click at each point on the map – a pink line is added

•Double click at last point

•Distance given in tools box

IWMW 2011

Page 33: IWMW Campus Maps Workshop

Measurement tools

• Click the area tool to activate

•Click at each point of your area – a pink shaded area is added

•Double click at last point

•Area given in tools box

IWMW 2011

Page 34: IWMW Campus Maps Workshop

Annotations tools

• Tools to add lines, shapes, text and labels to your maps available

IWMW 2011

Page 35: IWMW Campus Maps Workshop

Annotation tools

• Toolbar appears at the top of the screen – can be moved around

• Main options to add annotations in the Draw & Create area - add:

• Add symbols, text, lines, polygons, pre-defined shapes

• Annotations remain on your map at the same scale as you zoom in and out

• Annotations appear on your PDF map print

IWMW 2011

Page 36: IWMW Campus Maps Workshop

Sample of annotations

IWMW 2011

Page 37: IWMW Campus Maps Workshop

Print

•Print icon available at top right

•Opens in new window

IWMW 2011

Page 38: IWMW Campus Maps Workshop

Print

• add gridlines, title• option to include annotations• move map around in preview• print A3/A4 landscape or portrait

IWMW 2011

Page 39: IWMW Campus Maps Workshop

PDF print

IWMW 2011

Page 40: IWMW Campus Maps Workshop

Saving maps

• Click Save current map, enter a Map title, Click Ok

• Available whenever you login

•Saving annotations – soon......

IWMW 2011

Page 41: IWMW Campus Maps Workshop

Making a Campus Map

Confession time – at the present you cant actually do what I am about to demonstrate, but we hope to implement this soon and welcome feedback on what would be useful to web.

IWMW 2011

Page 42: IWMW Campus Maps Workshop

Theoretical process 1

1. Do some digitising – I would recommend that you theme your polygons. The colours are retained in the output so it makes it easier to re-interpret.

2. When you are happy with it, press the magic button

3. Get the code and load it into a GIS or load it into a web page through an API such as openlayers/google

Magic button may appear

here....

IWMW 2011

Page 43: IWMW Campus Maps Workshop

Practical

Onto the practical exercise

Familiarising yourself with Digimap ROAM

This should take around 30 minutes

Then we will look at what we can do with the output.

IWMW 2011

Page 44: IWMW Campus Maps Workshop

After the magic button?

Well, this is the bit has still to be decided and we want your help.

IWMW 2011

Page 45: IWMW Campus Maps Workshop

Theoretical process 1

1. Do some digitising – I would recommend that you theme your polygons. The colours are retained in the output so it makes it easier to re-interpret.

2. When you are happy with it, press the magic button

3. Get the code and load it into a GIS or load it into a web page through an API such as openlayers/google

Magic button may appear

here....

IWMW 2011

Page 46: IWMW Campus Maps Workshop

What to do next?

Now we have digitised the buildings and grabbed the GeoJSON through the “magic button” what options are there?Here we will outline 3 options:

– Google Earth– Image files as output (for print or Google Earth)– OpenLayers dynamic map

There may be other options/needs. If you have any thoughts, we would like to hear them.

IWMW 2011

Page 47: IWMW Campus Maps Workshop

Google Earth

To get the annotations into Google Earth it is pretty easy. We need to convert the GeoJSON to KML

Using the ogr2ogr libraries:

ogr2ogr –f “KML” campusmap.kml input.geoJSON

IWMW 2011

OGR2OGR libraries available through FWToolshttp://fwtools.maptools.org/

Page 48: IWMW Campus Maps Workshop

Google Earth

IWMW 2011

Page 49: IWMW Campus Maps Workshop

Case study

Campus maps for Edinburgh University

Requirements:– Make map that can be integrated into

MobileCampus App– Define all university buildings as polygons– Link to attributes– Make maps which show uni building

• Maps must be “lite” enough to deploy on mobile

IWMW 2011

Page 50: IWMW Campus Maps Workshop

Recipe – part 1

1 x IS intern

30 minute intro to Digimap ROAM

1 x copy of current campus map

1 x access to Google Streetview

2 x lunch time walks

1 – 2 days of digitising

http://www.flickr.com/photos/indieb0i/101943682/

Not mine, honest

Take intern and train on how to digitise, set intern loose and copy existing map, checking it is correct with google streetmap, Openstreetmap and ground truthing (lunchtime walks).

IWMW 2011

Page 51: IWMW Campus Maps Workshop

Recipe Part 2

• Once you have the JSON, convert to shapefile format: – Ogr2ogr –f “ESRI SHAPE FILE” campusmap.shp

input.geoJSON

• Import into GIS and theme• Add basemap• Export to desired file format (png in this

case)• Re-project png from OSGB to WGS84 for use

in google maps.

IWMW 2011

Page 52: IWMW Campus Maps Workshop

Edinburgh Central Campus

IWMW 2011

Page 53: IWMW Campus Maps Workshop

Kings Buildings

IWMW 2011

Page 54: IWMW Campus Maps Workshop

Western General Hospital

IWMW 2011

Page 55: IWMW Campus Maps Workshop

Easter Bush

Issue with the buildings here, they are new

and don’t appear on OS

maps yet.

IWMW 2011

Page 56: IWMW Campus Maps Workshop

Doing more with GIS/OpenLayers

QGIS is a free, open source piece of software that is easy to use and well documented

We will try to get our shapefile loaded and then export it in some openlayers code that can be dropped into a webpage to give an interactive map.

http://www.qgis.org

IWMW 2011

Page 57: IWMW Campus Maps Workshop

QGIS main screen

Add vector layer

Layer list

Map

Window

IWMW 2011

Page 58: IWMW Campus Maps Workshop

Plugins

IWMW 2011

Page 59: IWMW Campus Maps Workshop

OGR2Layer

Set an output folder Set map size

IWMW 2011

Page 60: IWMW Campus Maps Workshop

OpenLayers Code

<script src="http://www.openlayers.org/api/OpenLayers.js"></script>

<script type="text/javascript">

var map, selectsControls

function init(){

var option = {

projection: new OpenLayers.Projection("EPSG:900913"),

displayProjection: new OpenLayers.Projection("EPSG:4326")

};

map = new OpenLayers.Map('map', option);

olmapnik = new OpenLayers.Layer.OSM("OpenStreetMap", "http://tile.openstreetmap.org/${z}/${x}/${y}.png");

map.addLayer(olmapnik);

map.setBaseLayer(olmapnik);

var ls= new OpenLayers.Control.LayerSwitcher();

map.addControl(ls);

ls.maximizeControl();

map.addControl(new OpenLayers.Control.Scale());

var OGRGeoJSON_style = new OpenLayers.Style(

OpenLayers.Util.applyDefaults({

strokeColor: "${getStrokeColor}",

strokeOpacity: 1,

strokeWidth: "${getLineWidth}",

fillColor: "${getFillColor}",

fillOpacity: 1

}

//START QUERY OGRGeoJSONfunction onPopupCloseOGRGeoJSON(evt) {

selectControl.unselect(selectedFeature);}function onFeatureSelectOGRGeoJSON(feature){

selectedFeature = feature;tableOGRGeoJSON="<html><meta http-

equiv='Content-Type' content='text/html; charset=UTF-8'><body><table><tr><td><b>alignment:</b></td><td><i>"+feature.attributes.alignment+"</i></td></tr><tr><td><b>fcode:</b></td><td><i>"+feature.attributes.fcode+"</i></td></tr><tr><td><b>fillColor:</b></td><td><i>"+feature.attributes.fillColor+"</i></td></tr><tr><td><b>fillOpacity:</b></td><td><i>"+feature.attributes.fillOpacity+"</i></td></tr><tr><td><b>fontColor:</b></td><td><i>"+feature.attributes.fontColor+"</i></td></tr><tr><td><b>fontFamily:</b></td><td><i>"+feature.attributes.fontFamily+"</i></td></tr><tr><td><b>fontSize:</b></td><td><i>"+feature.attributes.fontSize+"</i></td></tr><tr><td><b>fontWeight:</b></td><td><i>"+feature.attributes.fontWeight+"</i></td></tr><tr><td><b>internal:</b></td><td><i>"+feature.attributes.internal+"</i></td></tr><tr><td><..........></td></tr></table></body></html>";

popup = new OpenLayers.Popup.FramedCloud("chicken",

feature.geometry.getBounds().getCenterLonLat(),new OpenLayers.Size(1000,500),tableOGRGeoJSON,null,true,onPopupCloseOGRGeoJSON

);feature.popup = popup;map.addPopup(popup);

}function onFeatureUnselectOGRGeoJSON(feature) {

map.removePopup(feature.popup);feature.popup.destroy();feature.popup = null;

}//STOP QUERY OGRGeoJSON

IWMW 2011

Page 61: IWMW Campus Maps Workshop

Output (OSM)

• No coded written

• Can add in attributes

• Can apply styles to data in QGIS

• Works in all good browsers (so not IE)

IWMW 2011

Page 62: IWMW Campus Maps Workshop

Output (Digimap OpenStream)

• Grab the example code from OpenStream site

• Copy the variables to the beginning of the script

• Add a new OpenLayer.map to the index.html

• Discover the projections dont match• Panic!• Find someone clever• Copy their code (function proj2.js)

IWMW 2011

Page 63: IWMW Campus Maps Workshop

Useful Links

http://edina.ac.ukhttp://edina.ac.uk/digimap/http://www.gogeo.ac.uk/http://openstream.edina.ac.uk/registration/http://www.qgis.orghttp://fwtools.maptools.org/

IWMW 2011