Thursday, October 5, 2017

Web GIS Lab 2: Geospatial Web Services

Goal and Background

This lab introduces students to creating geospatial web services through ArcGIS Online and ArcGIS Server in which they will author and publish feature classes, raster, and an Excel CSV file via ArcMap and ArcGIS Pro.

In this lab students will engage in the following tasks:
  1. Publishing feature hosted services through ArcGIS Online
  2. Publishing a tiled map service using ArcGIS Server
  3. Author a map document, create a feature service, and add this to a web map
*Data for this lab can be found in the Lab2_data.zip file on the D2L website; contains data for all sections of the lab*

Methods

Part 1: Publishing feature hosted services through ArcGIS Online

Section 1: Publishing a feature hosted service using a shapefile

> Open ArcMap and load the data for Part 1 Section 1 which contains Wisconsin features including cities, interstates, highways, and counties; close ArcMap

> Return to the Part 1 Section 1 folder, select all the features, and right click and select 'Send to' > 'Compressed (Zipped) folder' (Figure 1); this will create a zip file of the selected data in the folder

Figure 1: Creating a zip file
> Change the name of the folder to 'Wisconsin_transportation.zip' and be sure to not delete the .zip file extension while renaming it; now you will publish a shapefile in ArcGIS.com

> Sign in to ArcGIS Online for organizations; click on 'Content' > 'My Content' > 'Add Item' > 'From My Computer' (Figure 2); click 'Choose File' button and select the 'Wisconsin_transportation.zip' file created earlier
Figure 2: Add Item from computer in ArcGIS Online
> Enter the title 'Wisconsin transportation data service_YourLastName'; type in at least four appropriate tags; click 'Add Item' at the bottom of the window which will then publish the file as a service; once the file is published, a thumbnail will appear that should look like the one below (Figure 3)
Figure 3: Wisconsin transportation data
service feature layer thumbnail
> From here, you can view the service in the map viewer, making desired changes and edits, and share items as well.

Section 2: Publishing a feature hosted service using a CSV file

Instead of using a shapefile, we will now publish an Excel CSV (comma separated value) file. The file is titled 'WI_fire_occ_2004' and is located in the Lab 2 Data folder. The Excel sheet must be saved as a CSV file before it can be published.

> Open the 'WI_fire_occ_2004' file; save it as a CSV file and name it 'WI_fire_occ_2004_YourLastName'

> In ArcGIS.com, follow the similar procedure as in the previous section to publish the file; use the recently saved fire occurence CSV file as the input file; name it something along the lines of 'Wisconsin 2004 fire occurrence'; add at least two appropriate tags

> Under 'Locate features by:' select 'Coordinates'; under the 'Location Fields' heading for the 'POINT_Y' Field Name select 'Latitude' and for the 'POINT_X' Field Name select 'Longitude' (Figure 4)
Figure 4: Setting up the coordinates values from
 the CSV file in the 'Add an item' window
> Click on 'Add Item' at the bottom of the window to publish the service; verify the service has been published by opening the service in the map viewer

> When clicking on any fire occurrence, we only want the FIREDATE field to show; click on 'Content' > 'More Option' > 'Configure Pop-up' (Figure 5) to configure the pop-ups

Figure 5: Configure pop-ups in map viewer
> Under 'Pop-up Contents' change display from 'A list of field attributes' to 'A description from one field' and select 'FIREDATE' as the field; click 'OK' at the bottom of the window to finish configuring pop-ups

Section 3: Publishing a feature hosted service using an ArcMap document



Part 2: Publishing a tiled map service using ArcGIS Server

Section 1: Publishing a service to ArcGIS Server using ArcMap


Section 2: Consuming the map service in a web application


Section 3: Publishing a service to a Portal using ArcGIS Pro


Part 3: Author a map document, create a feature service, and add these to a web map

Section 1: Author a feature access and time-enabled service data

Section 2: Consume a feature access time-enabled service




Results

Result #1: Feature hosted service using a shapefile

URL: http://uwec.maps.arcgis.com/home/item.html?id=12cb4fa746504ba588d833e8f9d3c469

The end product 'Wisconsin transportation date service_Jeffers' feature hosted using a shapefile can be seen below (Figure ):
Figure : Wisconsin transportation data feature hosted
service that was created using a shapefile
This is what the service looks like when it is opened in map viewer on ArcGIS Online. From here, users can perform a number of task such as editing and customizing the map layers, adding other layers, change the basemap, run analyses, etc., and once the map has been customized, it can be saved and shared.

Result #2: Feature hosted service using a CSV file

URL: http://uwec.maps.arcgis.com/home/webmap/viewer.html?useExisting=1&layers=8ca5b88b0c3e4da4a9fae37b7ecea16f 

The end product of the 'WI_fire_occ_2004_Jeffers' feature hosted service using a CSV file can be seen below (Figure ):
Figure : Wisconsin 2004 fire occurrence feature hosted
service that was created using a CSV file
This is what the service looks like when it is opened in map viewer on ArcGIS Online. This service offers the same functionality as described in the previous feature hosted service result.

Result #3: Feature hosted service using an ArcMap document

URL: http://uwec.maps.arcgis.com/home/webmap/viewer.html?useExisting=1&layers=c63294be4f7c42bbaecf3a61a1001a51 

The end product of the 'Wisconsin_WaterBodies_Service_Jeffers' feature hosted service using an ArcMap document can be seen below (Figure ):
Figure : Wisconsin water bodies feature hosted service
that was created using an ArcMap document
This is what the service looks like when it is opened in map viewer on ArcGIS Online. This service offers the same functionality as described in the previous feature hosted service results.

Result #4: Published ArcGIS Server service using ArcMap

URL: http://www.arcgis.com/home/webmap/viewer.html?url=http%3A%2F%2Fgeog01.uwec.edu%2Fserver%2Frest%2Fservices%2Fjefferap%2FJeffers_Chippewa_Valley_urban_Landuse%2FMapServer&source=sd 

The end product of the 'Jeffers_Chippewa_Valley_urban_Landuse' MapServer service that was published using ArcMap can be seen below (Figure ):

Figure : Chippewa Valley urban land use ArcGIS Server
service that was created using ArcMap
This is what the service looks like when it is opened in ArcGIS Online map viewer except this was accessed through ArcGIS Server as opposed to ArcGIS Online. This service offers similar functionality as described in the previous feature hosted service results.

Result #5: Published ArcGIS Online service using ArcGIS Pro

URL: http://uwec.maps.arcgis.com/home/webmap/viewer.html?useExisting=1&layers=0fdabfa9f40c467d8076b496b2f3cefa

The end product of the 'Chippewa_valley_corridor_Jeffers' tile layer that was published using ArcGIS Pro can be seen below (Figure ):

Figure : Chippewa Valley urban land use ArcGIS Online
tile layer that was created using ArcGIS Pro
This is what the layer looks like when it is opened in ArcGIS Online map viewer. The appearance and functionality is basically the same as the previous result, it was just published using a different method.

Result #6: Feature access and time-enabled service data

URL: http://www.arcgis.com/home/webmap/viewer.html?url=http%3A%2F%2Fgeog01.uwec.edu%2Fserver%2Frest%2Fservices%2Fjefferap%2FNatural_Disasters_AJ%2FMapServer&source=sd

The end product of the 'Natural_Disasters_AJ' MapServer service that was published using ArcMap can be seen below (Figure ):

Figure : U.S. natural disasters (earthquakes and hurricanes)
ArcGIS Server service that was created using ArcMap
This is what the service looks like when it is opened in ArcGIS Online map viewer via ArcGIS Server. The functionality is similar to the previous results. However, there is an added time-enabled functionality which allows users to adjust the time settings and playback of the added features.


Sources

Mastering ArcGIS:

Price, Maribeth Hughett. Mastering ArcGIS. New York: McGraw-Hill Education, 2016.
Wisconsin DNR:


Cyril Wilson:

USGS:

NOAA:

No comments:

Post a Comment