Even since I read about the map comparison template for ArcGIS Online maps I’ve been itching to give it a try. The template enables you to compare three ArcGIS Online maps side-by-side. It can provide real insight into data that is changing over time, or data on different themes for the same place. I can see real uses for this template in comparing County Development Plans between revisions, in comparing Census results between years or even in comparing Census themes to reveal relationships between socio-economic variables.
What I really needed was some good source data to provide a time series to illustrate the power of this sort of mapping. I remembered that the EPA collects Corine Land Cover information on a systematic basis so I contacted them to get a cut of the data pertaining to Ireland for 1990, 2000 and 2006. Very helpfully the EPA were able to provide me with the data for each year in esri shapefile format coded with consistent land use classes and complete with the all important legend file for symbolisation. This was a great starting point for building my maps and my web application.
I took an initial look at the source data in ArcMap to see what the structure of the shapefiles was. There have been some changes to the way Corine data was recorded and coded over the years. As the source materials used as input to the classification have improved there have been corresponding improvements to the classified data. The supplied shapefiles had similar structure and a consistent coding scheme.
For performance reasons its best not to use shapefiles to create web services. So I created an empty Geodatabase using ArcCatalog. I adopted the schema of the 2006 shapefile as the schema for my Feature Classes. I then loaded the data from each shapefile into the its corresponding Feature Class, one for each year taking care to map the relevant source fields to the target schema. Having done that I then created indexes on any fields I would be using for display or labelling. The resulting Feature Classes were in Irish Grid so using ArcToolbox I re-projected them to Web Mercator which is ideal for use with the ArcGIS Online basemaps. My data was ready now I could create some web services.
Using ArcMap I authored a map for each Corine year by simply loading each Feature Class and applying the legend file the EPA had provided. I filled in the document properties and the layer properties with some basic descriptive metadata for my maps. Using the Map Publishing Toolbar I was then able to publish my maps as web services to our Amazon based ArcGIS Server in the cloud. It doesn’t get any easier than this.
So now I have three web services, one for each of 1990, 2000 and 2006 in a public folder on my ArcGIS Server. I can now mashup these services any way I please. I’m going to use ArcGIS.com so that I can the use the resultant “webmap’s” in the map comparison template. Now you’ll notice that each web services has a “View In: ArcGIS.com” link on its endpoint. Clicking the link creates an ArcGIS.com webmap which I can then save in my Content Gallery. I take the opportunity to edit the webmap Description, Credits and Access Use and Constraints to acknowledge the EPA.
At this stage have the three webmaps that I want to use with the map comparison template. I open the first map on ArcGIS.com and click the Share button. There are loads of different ways to Share your Maps on ArcGIS.com including Facebook, Twitter, iFrame or web application. I want to make a web application so I choose that option. From the Web Application Gallery I choose the map comparison template and download it to my IIS server. OK so now I need to drop the GUID of each of my webmaps into the downloaded template so that the web application knows which maps it’s supposed to be comparing. It’s not difficult and it’s well described in the template readme document – if you can cut and paste (and who can’t!) you can do it.
The moment of truth! I hit http://46.137.120.35/CorineCompare/index.html and up she comes. The web application lets me navigate to any location and see the Corine data mashed up on the ArcGIS Online Topographic basemap. I can right click to synchronize the scale and location to see how any location has changed through time or I can permanently synchronise the maps. Even the Identify Tool is synchronised – clicking on one Map returns results from all three (sweet!).
A good enough day’s work I think. Except for it hasn’t taken me a day. Start to finish, it’s taken about 4 hours to create and publish this application. So it’s no trouble, if you have some Irish data that you would like to give the “comparator” treatment drop me a line and I’ll try to help you out.
ED




