{"id":246,"date":"2013-05-16T10:23:06","date_gmt":"2013-05-16T10:23:06","guid":{"rendered":"http:\/\/www.lincoln.ac.nz\/conversation\/gis\/?p=246"},"modified":"2013-05-16T10:23:06","modified_gmt":"2013-05-16T10:23:06","slug":"web-feature-services-real-data-from-the-web-to-your-desktop","status":"publish","type":"post","link":"https:\/\/blogs.lincoln.ac.nz\/gis\/web-feature-services-real-data-from-the-web-to-your-desktop\/","title":{"rendered":"Web Feature Services &#8211; real data from the web to your desktop"},"content":{"rendered":"<p><em>This post looks at web feature services (WFS) where real data from internet sources can be added to your desktop for analysis purposes.<\/em><\/p>\n<p>In a previous post we looked at <a title=\"Canterburymaps.govt.nz and Web Services\" href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/2013\/04\/03\/canterburymaps-govt-nz-and-web-services\/\" target=\"_blank\" rel=\"noopener\">web services<\/a> that could be added to a map. \u00a0While these are great for map making purposes, they do have their limitations, especially if you want to do any proper analysis. \u00a0Technically, those web services are referred to as Web Mapping Services (WMS). \u00a0Another flavour of web services is Web Feature Services (WFS) which give you direct access to actual features from your desktop.<\/p>\n<p>****NOTE****: To take advantage of WFS, you&#8217;ll need to have a new extension installed, the Data Interoperability extension (try saying that ten times&#8230;) which allows you to make the right connection. \u00a0Contact myself or Paul Helleur at ITS to have this installed.<\/p>\n<p>First, an overview of the process followed by some detail:<\/p>\n<ul>\n<li>Get a URL to the feature service<\/li>\n<li>Create a new interoperability connection<\/li>\n<li>Add data to your map.<\/li>\n<\/ul>\n<p><strong>Get a URL to the feature service<\/strong><\/p>\n<p>This is probably the trickiest part. \u00a0Anytime a web service of any kind is made available, there&#8217;s a record of it on the server. \u00a0For example, CERA has a lot of their data offered up as WMS. \u00a0There&#8217;s a web site on every GIS server where you can find summaries of all the web services on offer &#8211; click on the link below or copy and paste it into your favourite browser (which I hope is NOT Internet Explorer) to see CERA&#8217;s:<\/p>\n<ul>\n<li><a href=\"http:\/\/maps.cera.govt.nz\/arcgis\/rest\/services\/CERA\" target=\"_blank\" rel=\"noopener\">http:\/\/maps.cera.govt.nz\/arcgis\/rest\/services\/CERA<\/a><\/li>\n<\/ul>\n<p>This gets you to the Services Directory &#8211; a summary of all the services available in the CERA folder on the maps.cera.govt.nz server.<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CERAServices.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-890\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CERAServices.jpg\" alt=\"CERAServices\" width=\"1439\" height=\"899\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CERAServices.jpg 1439w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CERAServices-300x187.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CERAServices-1024x640.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CERAServices-768x480.jpg 768w\" sizes=\"auto, (max-width: 1439px) 100vw, 1439px\" \/><\/a><\/p>\n<p>The &#8220;\/arcgis\/rest\/services&#8221; bit is where all the services live, so if you know the name of a particular server (e.g. gis.lincoln.ac.nz), you could add on the &#8220;\/arcgis\/rest\/services&#8221; to get to the Services Directory. \u00a0Try it if you like.<\/p>\n<p>Clicking on any one of the links will get you some more information on that service, but most of it will likely be gibberish until you become familiar with the intricacies of web mapping. \u00a0Here&#8217;s the page for the CERA_TechClasses_WGS84 service:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/TechClassLayer.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-896\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/TechClassLayer.jpg\" alt=\"TechClassLayer\" width=\"1438\" height=\"897\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/TechClassLayer.jpg 1438w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/TechClassLayer-300x187.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/TechClassLayer-1024x639.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/TechClassLayer-768x479.jpg 768w\" sizes=\"auto, (max-width: 1438px) 100vw, 1438px\" \/><\/a><\/p>\n<p>With a bit of wherewithal, I could easily <a href=\"http:\/\/www.lincoln.ac.nz\/conversation\/gis\/2013\/04\/03\/canterburymaps-govt-nz-and-web-services\/\">add this map service to an ArcMap map<\/a>, but again, it would just be an image rather than useful data. \u00a0Just above the bold faced title are a few links: &#8220;JSON | SOAP | WMS | WFS&#8221;. \u00a0JSON and SOAP are internet protocols for working with data objects, WMS means we could add the map service to a map; WFS is the key here &#8211; it means that we can get at the actual data. \u00a0Click on that link takes you here:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/WFSLink.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-897\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/WFSLink.jpg\" alt=\"WFSLink\" width=\"1439\" height=\"896\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/WFSLink.jpg 1439w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/WFSLink-300x187.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/WFSLink-1024x638.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/WFSLink-768x478.jpg 768w\" sizes=\"auto, (max-width: 1439px) 100vw, 1439px\" \/><\/a><\/p>\n<p>Yes, more gobbeldy gook but let&#8217;s focus on the URL (uniform resource locator) in the browser address line:<\/p>\n<p>http:\/\/maps.cera.govt.nz\/arcgis\/services\/CERA\/CERA_TechClasses_WGS84\/MapServer\/WFSServer?request=GetCapabilities&#038;service=WFS<\/p>\n<p>This is what we&#8217;ll need to add this layer to a map &#8211; copy it.<\/p>\n<p><strong><span style=\"font-size: 16px\">Create a new interoperability connection<\/span><\/strong><\/p>\n<p>So the URL gives us the pathway to the data. \u00a0Next we&#8217;ll use the interoperability extension to connect to the data &#8211; do this in ArcCatalog. \u00a0In the Catalog Window look at the bottom of the list for Interoperability Connections:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CatalogTree.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-889\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CatalogTree.jpg\" alt=\"CatalogTree\" width=\"373\" height=\"275\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CatalogTree.jpg 373w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/CatalogTree-300x221.jpg 300w\" sizes=\"auto, (max-width: 373px) 100vw, 373px\" \/><\/a><\/p>\n<p>Double-click &#8220;Add Interoperability Connection&#8221;. \u00a0In the window that pops up, paste the URL from above into the &#8220;Dataset&#8221; window and set the &#8220;Format&#8221; window to WFS<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Interop.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-893\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Interop.jpg\" alt=\"Interop\" width=\"390\" height=\"190\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Interop.jpg 390w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Interop-300x146.jpg 300w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/a><\/p>\n<p>Now click the &#8220;Parameters&#8221; button. \u00a0Tick the &#8220;Use Proxy Server&#8221; box and put in these details to get through the firewall (make sure you use &#8220;lu\\yourusername&#8221; instead of mine).<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Proxy.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-895\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Proxy.jpg\" alt=\"Proxy\" width=\"411\" height=\"169\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Proxy.jpg 411w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Proxy-300x123.jpg 300w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/a><\/p>\n<p>Then click the Contraints &gt; Feature Types button with the ellipses:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Constraints.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-892\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Constraints.jpg\" alt=\"Constraints\" width=\"409\" height=\"140\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Constraints.jpg 409w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Constraints-300x103.jpg 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/a><\/p>\n<p>might take a bit, but you&#8217;ll then get a window of available layers:<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Layers.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-894\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Layers.jpg\" alt=\"Layers\" width=\"570\" height=\"307\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Layers.jpg 570w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Layers-300x162.jpg 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/a><\/p>\n<p>Tick the ones you want and click OK. \u00a0Here I&#8217;ve only ticked one &#8211; these are all versions from different releases of the technical classes (how they changed over time). \u00a0Click OK three times to finish.<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Connection.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-891\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Connection.jpg\" alt=\"Connection\" width=\"442\" height=\"298\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Connection.jpg 442w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/Connection-300x202.jpg 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/a><\/p>\n<p>We&#8217;ve got the connection set up &#8211; now we can add the layer to a map.<\/p>\n<p><strong>Add data to your map<\/strong><\/p>\n<p>In ArcMap, click <strong>Add Data<\/strong> and navigate to the Interoperability connection we set up &#8211; add the CERA layer to your map et voila!<\/p>\n<p><a href=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/AddedLayer.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-888\" src=\"https:\/\/d-blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/AddedLayer.jpg\" alt=\"AddedLayer\" width=\"1272\" height=\"761\" srcset=\"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/AddedLayer.jpg 1272w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/AddedLayer-300x179.jpg 300w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/AddedLayer-1024x613.jpg 1024w, https:\/\/blogs.lincoln.ac.nz\/gis\/wp-content\/uploads\/sites\/3\/2013\/05\/AddedLayer-768x459.jpg 768w\" sizes=\"auto, (max-width: 1272px) 100vw, 1272px\" \/><\/a><\/p>\n<p>Now, unlike a map service, we&#8217;ve got full access to the features and the attribute table. \u00a0Plus we can use this layer in geoprocessing tools. \u00a0This layer will run more slowly than a local copy depending on how well the internet is working so a\u00a0next step might be to make a local copy of the layer. \u00a0(Right-click on the layer name and go to &#8220;Export Data&#8221; then save it as a shapefile or feature class somewhere locally.) \u00a0I&#8217;ve already done this and you can find a copy of this layer in J:\\Data\\Christchurch\\CERA.<\/p>\n<p>One limitation of the CERA data is that the WFS layers are only available in WGS84 (latitude and longitude, the coordinate system that GPS uses) whereas most analyses will be done in, say, NZTM. \u00a0I&#8217;m not quite sure why this is, but another step with this layer might be to project it to NZTM so it plays nicely with other data. \u00a0You could do this straight from the connection in ArcCatalog or from ArcMap.<\/p>\n<p>Feature services are a powerful way of making full blown versions of data available over the internet &#8211; gone may be the days of huge zip files or waiting for that DVD in the post (though it does mean that you need someone around who can set all this up.) \u00a0Happily, CERA&#8217;s not the only organisation to offer WFS. \u00a0Both LINZ and Landcare offer data access this way (at <a href=\"http:\/\/data.linz.govt.nz\" target=\"_blank\" rel=\"noopener\">data.linz.govt.nz<\/a> and <a href=\"http:\/\/lris.scinfo.org.nz\" target=\"_blank\" rel=\"noopener\">lris.scinfo.org.nz<\/a>) , but it is slightly more complicated. \u00a0I&#8217;ll cover how to work with those sites in <a title=\"Web Feature Services Part 2 \u2013 LRIS and LDS\" href=\"http:\/\/blogs.lincoln.ac.nz\/gis\/2013\/05\/22\/web-feature-services-part-2-lris-and-lds\/\" target=\"_blank\" rel=\"noopener\">another post<\/a>.<\/p>\n<p>C    \t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post looks at web feature services (WFS) where real data from internet sources can be added to your desktop for analysis purposes. In a previous post we looked at web services that could be added to a map. \u00a0While these are great for map making purposes, they do have their limitations, especially if you [&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],"tags":[],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-common-how-to-questions"],"_links":{"self":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/246","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=246"}],"version-history":[{"count":0,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/posts\/246\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.lincoln.ac.nz\/gis\/wp-json\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}