{"id":82,"date":"2013-04-03T21:24:12","date_gmt":"2013-04-03T21:24:12","guid":{"rendered":"http:\/\/www.lincoln.ac.nz\/conversation\/gis\/?p=82"},"modified":"2023-05-07T04:21:34","modified_gmt":"2023-05-07T04:21:34","slug":"canterburymaps-govt-nz-and-web-services","status":"publish","type":"post","link":"https:\/\/blogs.lincoln.ac.nz\/gis\/canterburymaps-govt-nz-and-web-services\/","title":{"rendered":"Canterburymaps.govt.nz and Web Services"},"content":{"rendered":"<p><em>The Canterbury councils recently got together (gasp!) to produce a map portal for the whole region. \u00a0This post covers that as well as brings up how web services can be used to access publicly available data.<\/em><\/p>\n<p><em><strong>Canterburymaps.govt.nz<\/strong><\/em><\/p>\n<p>It may sound hard to believe, but the district, city and regional councils got together recently and decided to work together to produce <a href=\"http:\/\/canterburymaps.govt.nz\" target=\"_blank\" rel=\"noopener\">Canterbury Maps<\/a>, a mapping portal for the whole region. \u00a0You can go there and select from several maps, including liquefaction susceptibility, library locations, swimming water quality, and a range of other more generic basemaps.<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ECanMaps.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-764\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ECanMaps.jpg\" alt=\"ECanMaps\" width=\"1440\" height=\"856\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ECanMaps.jpg 1440w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ECanMaps-300x178.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ECanMaps-1024x609.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ECanMaps-768x457.jpg 768w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/a><\/p>\n<p>Though it might not be apparent from such easy access, I can attest to the Herculean efforts that went into this. \u00a0Currently, there are no common standards for data within local government, so each council tends to have its own way of managing, storing, and providing data, though there&#8217;s no requirement of any commonality in what data are collected nor which attributes are stored. \u00a0All district councils would have data on, say, stormwater infrastructure, but there&#8217;s nothing that requires them to do it all in the same way. \u00a0And when these data need to come together in a common environment, well, they might as well be in different languages. \u00a0But our friends at the councils have joined hands, sung Kumbaya, my lord, Kumbaya, and we now have access to the consistent data across the region. \u00a0This is an offshoot of ECan&#8217;s GIS data viewer and was largely coordinated by them, with much pulling of hair and gnashing of teeth, I might add.<\/p>\n<p>This is interesting for a number of reasons. \u00a0First, this is about making\u00a0publicly\u00a0funded data publicly available. \u00a0Second, it&#8217;s a bit of an insight into where things are going GIS-wise. \u00a0 We&#8217;re all probably used to using something like Google Maps, or Open Street Map, or any number of on-line mapping applications (e.g. <a href=\"http:\/\/www.mapmyrun.com\" target=\"_blank\" rel=\"noopener\">MapMyRun<\/a>). \u00a0These are putting the power of GIS into people&#8217;s own hands and freeing them from the tyranny of having to have ArcGIS loaded on their computer. \u00a0Internet mapping is certainly the way many organisations are going as a way of making their data available to anyone with a browser (ourselves included). \u00a0For instance, I&#8217;ve been working with a colleague at Otago, who doesn&#8217;t know very much about GIS (and is quite happy about that, thank you very much). \u00a0An easy way for me to share the results of my analysis is to make a map available over the web (this is some work we&#8217;ve been doing around adolescent smoking and access to tobacco outlets near schools):<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Smokers.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-765\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Smokers.jpg\" alt=\"Smokers\" width=\"1438\" height=\"863\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Smokers.jpg 1438w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Smokers-300x180.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Smokers-1024x615.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Smokers-768x461.jpg 768w\" sizes=\"auto, (max-width: 1438px) 100vw, 1438px\" \/><\/a><\/p>\n<p>Now she can easily see the map without having to sit through one of my courses by going <a href=\"http:\/\/lincolngis.maps.arcgis.com\/home\/webmap\/viewer.html?webmap=90bf3ffdca06418ba31a02b71e6bdd47\">here<\/a>.<\/p>\n<p>But this does have its limitations. \u00a0While it&#8217;s great to be able to see all those data on Canterbury Maps, that&#8217;s all you can do with them. \u00a0What you&#8217;re actually seeing in your browser is an IMAGE of the data rather than the data themselves. \u00a0You can&#8217;t add them onto a map or do any analysis with them (unless the website is set up to do this &#8211; that&#8217;s another post). \u00a0And that&#8217;s where web services come in. \u00a0Just as you can send an image over the web, you can also make a service available which is a connection to the data on someone else&#8217;s server. \u00a0For example, ECan has a data layer of bus routes which you can no doubt find on Canterbury Maps. \u00a0But they also have the same data available as a web service which you can add to an ArcMap map and use as if it were sitting on your hard drive. \u00a0Here&#8217;s how that works:<\/p>\n<p><strong>Connecting to the ECan Web Services<\/strong><\/p>\n<p>First you need to set up a connection to the right server and that requires knowing the web address, or URL. \u00a0(The rest of this post is pretty ArcGIS-centric &#8211; apologies.) \u00a0If you up open up the Add Data dialogue, and get up to the top level, you&#8217;ll see an entry towards the bottom called &#8220;GIS Servers&#8221;:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/AddData.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-766\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/AddData.jpg\" alt=\"AddData\" width=\"504\" height=\"333\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/AddData.jpg 504w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/AddData-300x198.jpg 300w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/a><\/p>\n<p>Double-click that and go to &#8220;Add ArcGIS Server&#8221;. \u00a0At the next window choose &#8220;Use GIS Services&#8221; and then &#8220;Next&#8221; \u00a0The Server URL is &#8220;http:\/\/gis.ecan.govt.nz\/arcgis\/rest\/services&#8221; (copy and paste that if you like) and you don&#8217;t need a user name or password:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ConnectToServer.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-767\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ConnectToServer.jpg\" alt=\"ConnectToServer\" width=\"504\" height=\"437\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ConnectToServer.jpg 504w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/ConnectToServer-300x260.jpg 300w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/a><\/p>\n<p>Once you click &#8220;Finish&#8221; you&#8217;ll see a new entry under GIS Servers (I&#8217;ve got a few extra in mine&#8230;):<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Servers.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-768\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Servers.jpg\" alt=\"Servers\" width=\"507\" height=\"338\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Servers.jpg 507w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Servers-300x200.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/Servers-330x220.jpg 330w\" sizes=\"auto, (max-width: 507px) 100vw, 507px\" \/><\/a><\/p>\n<p>Double-click on that entry and you&#8217;ve got access to their public services, including aerial photos, topo maps, and, in the Public folder, Bus_Routes,which can be added to a map in ArcMap:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMap.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-769\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMap.jpg\" alt=\"RoutesMap\" width=\"1437\" height=\"898\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMap.jpg 1437w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMap-300x187.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMap-1024x640.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMap-768x480.jpg 768w\" sizes=\"auto, (max-width: 1437px) 100vw, 1437px\" \/><\/a><\/p>\n<p>I can add my own data into this map and treat it as if it lived locally.<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMapPlus.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-770\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMapPlus.jpg\" alt=\"RoutesMapPlus\" width=\"1437\" height=\"896\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMapPlus.jpg 1437w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMapPlus-300x187.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMapPlus-1024x638.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/04\/RoutesMapPlus-768x479.jpg 768w\" sizes=\"auto, (max-width: 1437px) 100vw, 1437px\" \/><\/a><\/p>\n<p>Now this is a step up from using a map viewer in a browser &#8211; these are data! \u00a0Mind you, under the bonnet, you&#8217;re still only getting an IMAGE of the data (as a PNG or a JPG likely) but now you can meld these services in to create your own maps and, if they&#8217;ve been set up correctly, you can even get a live feed of the data (though there are some security issues around that usually) with which you can do analysis.<\/p>\n<p>And ECan&#8217;s not the only one. \u00a0Here are some increasingly useful web services you might like to try yourselves:<\/p>\n<ul>\n<li><a href=\"http:\/\/maps.cera.govt.nz\/arcgis\/rest\/services\" target=\"_blank\" rel=\"noopener\">http:\/\/maps.cera.govt.nz\/arcgis\/rest\/services<\/a> &#8211; the CERA folder has a lot of layers related to the rebuild<\/li>\n<li><a href=\"http:\/\/geoportal.doc.govt.nz\/arcgis\/rest\/services\" target=\"_blank\" rel=\"noopener\">http:\/\/geoportal.doc.govt.nz\/arcgis\/rest\/services<\/a> &#8211; DOC related layers (area boundaries, campsites, marine reserves, and lots more)<\/li>\n<li><a href=\"http:\/\/arcgisonline.co.nz\/arcgis\/rest\/services\" target=\"_blank\" rel=\"noopener\">http:\/\/arcgisonline.co.nz\/arcgis\/rest\/services<\/a> &#8211; generic layers from Eagle Technology. \u00a0A good general basemap can be found in the Generic folder, while Census data are in the STATS folder)<\/li>\n<\/ul>\n<p>A good way to figure out what services are available is to connect to a server from ArcCatalog and browse the services there, rather than adding everything to an ArcMap map.<\/p>\n<p>You may have noted in one of the images above one &#8220;gis.lincoln.ac.nz&#8221;. \u00a0This is our very own GIS server and is being used increasingly for getting maps and data out there, though I&#8217;ll have to say more about that in another post. \u00a0Happy browsing!<\/p>\n<p>C<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Canterbury councils recently got together (gasp!) to produce a map portal for the whole region. \u00a0This post covers that as well as brings up how web services can be used to access publicly available data. Canterburymaps.govt.nz It may sound hard to believe, but the district, city and regional councils got together recently and decided [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-common-how-to-questions","category-interesting-problems"],"_links":{"self":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":1,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":4168,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/82\/revisions\/4168"}],"wp:attachment":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}