Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.

IWMW Campus Maps Workshop

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

  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

IWMW Campus Maps Workshop

  1. 1. Campus Maps - Plan A IWMW 2011 Who Digimap ROAM Questions Conclusions 0 90 Confession Next Steps Practical
  2. 2. Digimap’s Ordnance Survey Collection IWMW 2011
  3. 3. Map panel Map tools: measure, annotate, print, navigate Hints & Tips Task menu: Search, Overview map, Map Content Control, Map Info, MyMaps IWMW 2011
  4. 4. Menus <ul><li>Choose to Hide or Display </li></ul>IWMW 2011
  5. 5. Roam <ul><li>13 fixed scale map views </li></ul><ul><li>Search options: full postcode, place name, grid reference </li></ul><ul><li>Slippy maps – click and drag </li></ul><ul><li>Add annotations </li></ul><ul><li>Measure lines and areas </li></ul><ul><li>Some views customisable: </li></ul><ul><ul><li>can select which features to display </li></ul></ul><ul><ul><li>can select an alternative map data display at the same scale </li></ul></ul><ul><li>Print in PDF format - A4, A3, landscape or portrait </li></ul><ul><li>Export to JSON........... Soon? </li></ul>IWMW 2011
  6. 6. 13 map views, or is it 14? IWMW 2011
  7. 7. National IWMW 2011
  8. 8. Regional IWMW 2011
  9. 9. County IWMW 2011
  10. 10. Metropolitan IWMW 2011
  11. 11. City IWMW 2011
  12. 12. District IWMW 2011
  13. 13. Local Plus IWMW 2011
  14. 14. Local IWMW 2011
  15. 15. Neighbourhood IWMW 2011
  16. 16. Street IWMW 2011
  17. 17. Detailed IWMW 2011
  18. 18. Plan Digimap Training Workshops
  19. 19. Search – Place name IWMW 2011
  20. 20. Search – Place name London is not a unique search term, you get to select the instance that you want to view IWMW 2011
  21. 21. Search – Place name IWMW 2011 Local view map returned
  22. 22. Search - postcode IWMW 2011
  23. 23. Search - postcode Street view map returned IWMW 2011
  24. 24. Search – 4 figure grid reference Metropolitanview SE4182 IWMW 2011
  25. 25. Map Information Map product, Coordinates, Print scale IWMW 2011
  26. 26. Navigation <ul><li>Zoom in/out </li></ul><ul><ul><li>Fishbone </li></ul></ul><ul><ul><li>Double click to zoom in </li></ul></ul><ul><ul><li>Scroll wheel on mouse </li></ul></ul><ul><li>Drag zoom </li></ul><ul><li>Pan </li></ul><ul><ul><li>Click and drag the map </li></ul></ul><ul><ul><li>Compass </li></ul></ul><ul><li>Full extent / Previous / Next views </li></ul>IWMW 2011
  27. 27. Map Content Control <ul><li>Feature selection available in 7 views: </li></ul><ul><ul><li>Plan </li></ul></ul><ul><ul><li>Detailed </li></ul></ul><ul><ul><li>Street </li></ul></ul><ul><ul><li>Neighbourhood </li></ul></ul><ul><ul><li>District </li></ul></ul><ul><ul><li>City </li></ul></ul><ul><ul><li>Metropolitan </li></ul></ul>2 types of mapping types RASTER and VECTOR List of layers IWMW 2011
  28. 28. Map Content Control Uncheck boxes to remove layers IWMW 2011
  29. 29. 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
  30. 30. Map Information Map product, Coordinates, Print scale IWMW 2011
  31. 31. Measurement Tools <ul><li>Tools to measure distance/area of map features available </li></ul>IWMW 2011
  32. 32. Measurement tools <ul><li>Click the distance tool to activate </li></ul><ul><li>Click at each point on the map – a pink line is added </li></ul><ul><li>Double click at last point </li></ul><ul><li>Distance given in tools box </li></ul>IWMW 2011
  33. 33. Measurement tools <ul><li>Click the area tool to activate </li></ul><ul><li>Click at each point of your area – a pink shaded area is added </li></ul><ul><li>Double click at last point </li></ul><ul><li>Area given in tools box </li></ul>IWMW 2011
  34. 34. Annotations tools <ul><li>Tools to add lines, shapes, text and labels to your maps available </li></ul>IWMW 2011
  35. 35. Annotation tools <ul><li>Toolbar appears at the top of the screen – can be moved around </li></ul><ul><li>Main options to add annotations in the Draw & Create area - add: </li></ul><ul><ul><li>Add symbols, text, lines, polygons, pre-defined shapes </li></ul></ul><ul><li>Annotations remain on your map at the same scale as you zoom in and out </li></ul><ul><li>Annotations appear on your PDF map print </li></ul>IWMW 2011
  36. 36. Sample of annotations IWMW 2011
  37. 37. Print <ul><li>Print icon available at top right </li></ul><ul><li>Opens in new window </li></ul>IWMW 2011
  38. 38. Print <ul><li>add gridlines, title </li></ul><ul><li>option to include annotations </li></ul><ul><li>move map around in preview </li></ul><ul><li>print A3/A4 landscape or portrait </li></ul>IWMW 2011
  39. 39. PDF print IWMW 2011
  40. 40. Saving maps <ul><li>Click Save current map, enter a Map title, Click Ok </li></ul><ul><li>Available whenever you login </li></ul><ul><li>Saving annotations – soon...... </li></ul>IWMW 2011
  41. 41. 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
  42. 42. Theoretical process 1 Magic button may appear here.... IWMW 2011 <ul><li>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. </li></ul><ul><li>When you are happy with it, press the magic button </li></ul><ul><li>Get the code and load it into a GIS or load it into a web page through an API such as openlayers/google </li></ul>
  43. 43. Practical <ul><li>Onto the practical exercise </li></ul><ul><li>Familiarising yourself with Digimap ROAM </li></ul><ul><li>This should take around 30 minutes </li></ul><ul><li>Then we will look at what we can do with the output. </li></ul>IWMW 2011
  44. 44. After the magic button? <ul><li>Well, this is the bit has still to be decided and we want your help. </li></ul>IWMW 2011
  45. 45. Theoretical process 1 Magic button may appear here.... IWMW 2011 <ul><li>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. </li></ul><ul><li>When you are happy with it, press the magic button </li></ul><ul><li>Get the code and load it into a GIS or load it into a web page through an API such as openlayers/google </li></ul>
  46. 46. What to do next? <ul><li>Now we have digitised the buildings and grabbed the GeoJSON through the “magic button” what options are there? </li></ul><ul><li>Here we will outline 3 options: </li></ul><ul><ul><li>Google Earth </li></ul></ul><ul><ul><li>Image files as output (for print or Google Earth) </li></ul></ul><ul><ul><li>OpenLayers dynamic map </li></ul></ul><ul><li>There may be other options/needs. If you have any thoughts, we would like to hear them. </li></ul>IWMW 2011
  47. 47. Google Earth <ul><li>To get the annotations into Google Earth it is pretty easy. We need to convert the GeoJSON to KML </li></ul><ul><li>Using the ogr2ogr libraries: </li></ul><ul><li>ogr2ogr –f “KML” campusmap.kml input.geoJSON </li></ul>IWMW 2011 OGR2OGR libraries available through FWTools http://fwtools.maptools.org/
  48. 48. Google Earth IWMW 2011
  49. 49. Case study <ul><li>Campus maps for Edinburgh University </li></ul><ul><li>Requirements: </li></ul><ul><ul><li>Make map that can be integrated into MobileCampus App </li></ul></ul><ul><ul><li>Define all university buildings as polygons </li></ul></ul><ul><ul><li>Link to attributes </li></ul></ul><ul><ul><li>Make maps which show uni building </li></ul></ul><ul><ul><ul><li>Maps must be “lite” enough to deploy on mobile </li></ul></ul></ul>IWMW 2011
  50. 50. Recipe – part 1 <ul><ul><ul><li>1 x IS intern </li></ul></ul></ul><ul><ul><ul><li>30 minute intro to Digimap ROAM </li></ul></ul></ul><ul><ul><ul><li>1 x copy of current campus map </li></ul></ul></ul><ul><ul><ul><li>1 x access to Google Streetview </li></ul></ul></ul><ul><ul><ul><li>2 x lunch time walks </li></ul></ul></ul><ul><ul><ul><li>1 – 2 days of digitising </li></ul></ul></ul>http://www.flickr.com/photos/indieb0i/101943682/ Not mine, honest <ul><ul><ul><li>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). </li></ul></ul></ul>IWMW 2011
  51. 51. Recipe Part 2 <ul><li>Once you have the JSON, convert to shapefile format: </li></ul><ul><ul><li>Ogr2ogr –f “ESRI SHAPE FILE” campusmap.shp input.geoJSON </li></ul></ul><ul><li>Import into GIS and theme </li></ul><ul><li>Add basemap </li></ul><ul><li>Export to desired file format (png in this case) </li></ul><ul><li>Re-project png from OSGB to WGS84 for use in google maps. </li></ul>IWMW 2011
  52. 52. Edinburgh Central Campus IWMW 2011
  53. 53. Kings Buildings IWMW 2011
  54. 54. Western General Hospital IWMW 2011
  55. 55. Easter Bush Issue with the buildings here, they are new and don’t appear on OS maps yet. IWMW 2011
  56. 56. Doing more with GIS/OpenLayers <ul><li>QGIS is a free, open source piece of software that is easy to use and well documented </li></ul>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
  57. 57. QGIS main screen Add vector layer Layer list Map Window IWMW 2011
  58. 58. Plugins IWMW 2011
  59. 59. OGR2Layer Set an output folder Set map size IWMW 2011
  60. 60. OpenLayers Code <ul><li><script src=&quot;http://www.openlayers.org/api/OpenLayers.js&quot;></script> </li></ul><ul><li><script type=&quot;text/javascript&quot;> </li></ul><ul><li>var map, selectsControls </li></ul><ul><li>function init(){ </li></ul><ul><li>var option = { </li></ul><ul><li>projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;), </li></ul><ul><li>displayProjection: new OpenLayers.Projection(&quot;EPSG:4326&quot;) </li></ul><ul><li>}; </li></ul><ul><li>map = new OpenLayers.Map('map', option); </li></ul><ul><li>olmapnik = new OpenLayers.Layer.OSM(&quot;OpenStreetMap&quot;, &quot;http://tile.openstreetmap.org/${z}/${x}/${y}.png&quot;); </li></ul><ul><li>map.addLayer(olmapnik); </li></ul><ul><li>map.setBaseLayer(olmapnik); </li></ul><ul><li>var ls= new OpenLayers.Control.LayerSwitcher(); </li></ul><ul><li>map.addControl(ls); </li></ul><ul><li>ls.maximizeControl(); </li></ul><ul><li>map.addControl(new OpenLayers.Control.Scale()); </li></ul><ul><li>var OGRGeoJSON_style = new OpenLayers.Style( </li></ul><ul><li>OpenLayers.Util.applyDefaults({ </li></ul><ul><li>strokeColor: &quot;${getStrokeColor}&quot;, </li></ul><ul><li>strokeOpacity: 1, </li></ul><ul><li>strokeWidth: &quot;${getLineWidth}&quot;, </li></ul><ul><li>fillColor: &quot;${getFillColor}&quot;, </li></ul><ul><li>fillOpacity: 1 </li></ul><ul><li>} </li></ul>//START QUERY OGRGeoJSON function onPopupCloseOGRGeoJSON(evt) { selectControl.unselect(selectedFeature); } function onFeatureSelectOGRGeoJSON(feature){ selectedFeature = feature; tableOGRGeoJSON=&quot;<html><meta http-equiv='Content-Type' content='text/html; charset=UTF-8'><body><table><tr><td><b>alignment:</b></td><td><i>&quot;+feature.attributes.alignment+&quot;</i></td></tr><tr><td><b>fcode:</b></td><td><i>&quot;+feature.attributes.fcode+&quot;</i></td></tr><tr><td><b>fillColor:</b></td><td><i>&quot;+feature.attributes.fillColor+&quot;</i></td></tr><tr><td><b>fillOpacity:</b></td><td><i>&quot;+feature.attributes.fillOpacity+&quot;</i></td></tr><tr><td><b>fontColor:</b></td><td><i>&quot;+feature.attributes.fontColor+&quot;</i></td></tr><tr><td><b>fontFamily:</b></td><td><i>&quot;+feature.attributes.fontFamily+&quot;</i></td></tr><tr><td><b>fontSize:</b></td><td><i>&quot;+feature.attributes.fontSize+&quot;</i></td></tr><tr><td><b>fontWeight:</b></td><td><i>&quot;+feature.attributes.fontWeight+&quot;</i></td></tr><tr><td><b>internal:</b></td><td><i>&quot;+feature.attributes.internal+&quot;</i></td></tr><tr><td><..........></td></tr></table></body></html>&quot;; popup = new OpenLayers.Popup.FramedCloud(&quot;chicken&quot;, 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
  61. 61. Output (OSM) <ul><li>No coded written </li></ul><ul><li>Can add in attributes </li></ul><ul><li>Can apply styles to data in QGIS </li></ul><ul><li>Works in all good browsers (so not IE) </li></ul>IWMW 2011
  62. 62. Output (Digimap OpenStream) <ul><li>Grab the example code from OpenStream site </li></ul><ul><li>Copy the variables to the beginning of the script </li></ul><ul><li>Add a new OpenLayer.map to the index.html </li></ul><ul><li>Discover the projections dont match </li></ul><ul><li>Panic! </li></ul><ul><li>Find someone clever </li></ul><ul><li>Copy their code (function proj2.js) </li></ul>IWMW 2011
  63. 63. Useful Links <ul><li>http://edina.ac.uk </li></ul><ul><li>http://edina.ac.uk/digimap/ </li></ul><ul><li>http://www.gogeo.ac.uk/ </li></ul><ul><li>http://openstream.edina.ac.uk/registration/ </li></ul><ul><li>http://www.qgis.org </li></ul><ul><li>http://fwtools.maptools.org/ </li></ul>IWMW 2011