Aug 302011
 

Last week saw the GECO team attending and co-organising an Open Mapping Workshop with the DevCSI team. Addy Pope of GoGeo was one of our speakers on the day and has kindly written us this guest post about the event and some of the useful resources related to the presentations and discussions on the day. For more information on the event you can also see our LiveBlog of the day, we will also be adding audio and images from the day in the coming weeks.

The DevCSI Open mapping workshop was held in Glasgow on the 24th August 2011.  The program was:

  • Introduction to OpenStreetMap – Bob Kerr (OSM)
  • Open Source GIS and OpenLayers – Addy Pope (EDINA)
  • Getting started with PostGIS/Postgres – Lasma Siestone (EDINA)

This post aims to highlight the resources that were introduced and discussed during the workshop rather than chronicle the workshop itself.

Getting Started With OSM
Basic editing in OSM can be done through the OSM web interface.  Just create an account and then sign in. The web editor runs Potlach 2 which is shown really intuitive to use.

For more advanced editing, perhaps where you want to compare different satellite images or where you with to do bulk edits, you may want to have a look at JOSM.  JOSM is a Java based desktop editor which has a lots of useful resources that are not available in simple online editors such as Potlach2.  In addition, there is a stack of videos and tutorials to help you get started with JSOM.

Open Source GIS and Openlayers

GIS was once the the preserve of large software companies and the cost of licences made it difficult for non-gis professionals to access GIS tools.  However, over the past 5 years open source GIS tools have emerged and are now competing with proprietary GIS software in terms of usability and functionality.  This has allowed “Joe Public” to create custom maps and publish spatial data.

QGIS – QGIS is a free open source desktop GIS. While there are many other open source GIS’s out there, QGIS is packed with features, easy to use and well documented.  The other nice thing about QGIS is that there are a host of python plugins written by the QGIS user community that you can access and use. These allow you to do some neat things including:

  • DXF2SHP – convert dxf files to shapefiles
  • Delimited Text file import
  • Ordnance Survey translator – transforms OS GML to shapefile
  • fTools – Vector data management toolkit
  • PostGPS – load and save GPX files from your GPS

The plugin that was demoed at the workshop was the OGR2Layer tool. This allows you to load spatial data into QGIS and add the data to a Web Mapping Service (WMS) from OSM.  The tool outputs the OpenLayers code that you need to embed in your website to create an interactive, map.  The configuration options may be quite simple and limited, but they do give you a good start point from which you can easily build more complex, customised map inserts. A screenshot example (sadly not interactive) of the OGR2Layer output is shown below.

OGR2Layer output

and here is some of the code that the tool produces:

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);
olosma = new OpenLayers.Layer.OSM(“OpenStreetMap Osmarender”, “http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png”);
map.addLayer(olosma);
map.setBaseLayer(olosma);
var ls= new OpenLayers.Control.LayerSwitcher();
map.addControl(ls);
ls.maximizeControl();
map.addControl(new OpenLayers.Control.Attribution());
var ForestSOTM2_template = {
strokeColor: “#b9b9b9”,
strokeOpacity: 1,
strokeWidth: 0.26,
fillColor: “#00aa7f”,
fillOpacity: 1
}
var ForestSOTM2_style = new OpenLayers.Style(ForestSOTM2_template)
//START QUERY ForestSOTM2
function onPopupCloseForestSOTM2(evt) {
selectControl.unselect(selectedFeature);
}
function onFeatureSelectForestSOTM2(feature){
selectedFeature = feature;
tableForestSOTM2=”<html><meta http-equiv=’Content-Type’ content=’text/html; charset=UTF-8′><body><table><tr><td><b>NAME:</b></td><td><i>”+feature.attributes.NAME+”</i></td></tr></table></body></html>”;
popup = new OpenLayers.Popup.FramedCloud(“chicken”,
feature.geometry.getBounds().getCenterLonLat(),
new OpenLayers.Size(1000,500),
tableForestSOTM2,
null,
true,
onPopupCloseForestSOTM2
);
feature.popup = popup;
map.addPopup(popup);
}
function onFeatureUnselectForestSOTM2(feature) {
map.removePopup(feature.popup);
feature.popup.destroy();
feature.popup = null;
}

Openlayers by Erik Hazzard

If you want to find out more about OpenLayers then I would suggest reading OpenLayers 2.1.0 by Erik Hazzard. This book covers the basics but has enough detail to be useful for experienced users.

 

 

Another useful feature of QGIS is that you can stream a WMS into it so you always have a basemap to give your data some context.  I wont explain this here, if you wish to read about doing this then please read the post on the GoGeo blog.

 

PostGIS/Postgres

The final session of the day looked at PostGIS and Postgres. Used in tandem, these packages have powerful spatial capabilities but the barrier to use is often perceived to be quite high can put some off using them. The presentation should be available through the GECO blog soon but you might want to look at the following books:

That should be enough to get started with. I will try to add more links to useful resources as i find them.  In the meantime, you could search through the thousands of links in GoGeo. If you think there is a link that compliments this thread, please add a comment below including the link and a wee sentence or two about the resource it relates to and why you find it useful.


Share
 August 30, 2011  Posted by at 2:34 pm Events, Guest Posts, Misc. Tagged with: , , , , , , , ,  Comments Off on Guest Post: Notes and Useful Links from the DevCSI / GECO Open Mapping Workshop
Aug 252011
 

Today we will be liveblogging the DevCSI/GECO Open Mapping Workshop which is taking place at the CCA in Glasgow. At the moment we are just setting up for the first session which will be on OpenStreetMap.

Introduction – Mahendra Mahey, DevCSI

Mahendra is introducing the DevSCI project, funded by JISC, which focuses on creating an ecosystem for developers to encourage innovation. My connection to today’s event is through Jo Walsh, she sits on our steering committee and one of the requirements of being on our steering committee is that you arrange an event and this event today is Jo’s event although unfortunately she is off sick today.

We are very much about informal communities and events. To share experience and network and share ideas. My particular focus is developers in academia but it’s a very open and informal space – we have commercial developers and other interested people of all kind. If you have any ideas for events or meet ups then I’m really open to hearing about those. We are also looking for some case studies around how to get the best out of developers in academia and routes to stimulate innovation.

We run lots of hack days, usually over two days with accomodation nearby, to stimulate new ideas some of which go on to be funded projects.

Finally if you are along for the next few days, at the OpenStreetMap State of the Map Scotland event we’ll be in a larger space with this room, the Electron Club, in use for those who want to hack and developer.

Editing and re-using OpenStreetmap – Bob Kerr

OpenStreetMap is like Wikipedia for maps. Anyone can edit it. That usually scares folk as you could put a motorway right through George Square and ruin Brad Pitt’s zombie movie! But it’s all volunteer generated, all created by the community. And we’ve done a lot of mapping. We’ve actually completed Edinburgh and have compared it to the Council’s list of street names and we’re actually more accurate than the Ordnance Survey data on street names! Continue reading »

Share
 August 25, 2011  Posted by at 9:01 am Events, Misc. Tagged with:  3 Responses »
Aug 122011
 

Following our Open Source Geo & Health event this week (look out for a further blog post and report on that) JISC GECO are proud to be supporting two events on using open mapping tools which take place in Glasgow later this month:

The DevCSI / GECO Open Mapping Workshop (Thursday 25th August 2011, Electron Club, CCA, Glasgow) is a fantastic opportunity to spend a day finding out more about using open mapping and open data. There will be introductory sessions on editing and reusing OpenStreetMap, getting started with PostGIS geographic database, creating interactive maps on the web with OpenLayers and using map styling tools. There will also be hands on support for your problems, questions or ideas. More information is on the DevSci page for the event and you can book your place here.  If you can bring a laptop you should be able to try out all of the techniques on the day (and if you can install Java that would also be helpful).

State of the Map Scotland 2011 will see the Scottish OpenStreetMap community meet to talk, workshop and hack for two days. The event takes place at the Electron Club at the Centre for Contemporary Arts in Glasgow on Friday 26th and Saturday 27th August and you can find more on the #sotmscot wiki page and you can book your place here.

Both of these events are free to attend so we would encourage you to sign up early to ensure your place.

To find out about future GECO related events you should keep an eye on our new events page and you can also now subscribe to our events calendar [XML | iCAL | HTML]

Share
 August 12, 2011  Posted by at 12:14 pm Events Tagged with: , , , , , , , ,  Comments Off on Two Upcoming Open Mapping Events in August