The goal of this lab was to get familiar with using geospatial data to create and publish web services. A web service is an application that can be utilized through the internet on a platform that allows the user access to information and sometimes the ability to edit or maintain that information. For this lab, ArcGIS Online was the platform used to create these web services.
Methods
Part 1 - Section 1:
The first objective of this lab was to publish a web service using geospatial data stored on my computer. This was done by downloading a Wisconsin transportation dataset and importing it to ArcGIS online. This service contains Wisconsin cities, counties, interstates, and highways layers that were edited in ArcGIS online to represent the data in a visually pleasing and informative manner.
Figure 1: First step to editing layer symbology. |
Figure 2: Second step in changing symbology. |
Figure 3: Setting the symbology for the layer. |
Figure 4: Summary page for the Wisconsin Transportation Web Service. |
http://uwec.maps.arcgis.com/home/webmap/viewer.html?webmap=80535cbbccf744e1ad67e263b80b708d
Part 1 - Section 2:
The next service published to ArcGIS Online was done so by importing a geospatial data table in a comma delineated format. Once the dataset was brought into ArcGIS Online, the coordinate information was matched with the X and Y fields in the table to symbolize fire occurrences of 2004 in Wisconsin. Once this was done, the attribute pop-ups were configured to display only relevant information when the user clicks on a particular point.
Figure 5: (left) More options list for editing a feature layer in ArcGIS Online Map Viewer. |
Part 1 - Section 3:
The next method used to publish a web service was connecting to ArcGIS Online through ArcMap and using a map document as the foundation for the service. The first step in doing this was to create the map document in ArcMap. For this map document, "rivers and streams" and "lakes" of Wisconsin shapefiles were used. After naming the map "Wisconsin Water Bodies", the user signs into their ArcGIS Online account, through Enterprise, in ArcMap.
When logging into ArcGIS Online, the user must go to File > Sign In... pictured in figure 6.
Figure 6: First step to logging into ArcGIS Online. |
Figure 7: Sign in using the Enterprise account. |
Figure 8: For an Enterprise login, use organization credentials. |
Figure 9: Check to ensure the login was successful. |
Upon logging into ArcGIS Online in ArcMap, the user can share their map document as a service in ArcGIS Online. To do this, the user would go to File > Share as > Service. A Service Editor Wizard opens. When clicking through the Service Editor Wizard, the user inputs their ArcGIS Online connection type ("My Hosted Services (UW-Eau Claire - Geography and Anthropology)"), a name for the service ("Wisconsin_Water-Bodies_Service_Miller"), an item description (Summary, Tags, Description, Access Use and Constraints, and Credits as information regarding the web service), and sharing properties (Geog455Fall2017).
Next, the user ensures the successful creation and transfer of the web service by clicking the Analyze button in the Service Editor Wizard. A window at the bottom of the map document appears with all, if any, errors with the service. There are three types of error severity: High, Medium, and Low. Ultimately, it is up to the user to decide which errors to address and correct, or ignore and publish anyway. The more high severity errors the service has, the more likely something will go wrong when publishing or creating the service. Once the user has analyzed their service, click Publish. If the service was published correctly, a pop-up window will show, telling the user the good news. The user can check the status of the service by going to ArcGIS Online. The service should appear under My Content.
From there the user can edit their web service and publish it in ArcGIS Online's Map Viewer.
Part 2 - Section 1:
For this method, the service was published to the UWEC geography department's ArcGIS server. The first step was to connect to the user's database in the server. To do this, go to Add Database Connection in ArcMap's Catalog window. (see Figure 10)
Figure 10: Double click Add Database Connection to connect to user's database in server. |
Figure 11: Enter database information and hit OK. |
Figure 12: Raster service published to UWEC's ArcGIS server. |
From there, the service was brought into ArcGIS Online using the hyperlink pictured in Figure 12, and published as a web service. (see Figure 13)
Figure 13: Web service shown in ArcGIS Map Viewer. |
For this section of the lab, a web service was published to ArcGIS Online from ArcGIS Pro. The procedure for this was identical to Part 2 - Section 2, except ArcGIS Pro was used instead of ArcMap.
The user would start by creating a new File Geodatabase in ArcCatalog and copying the Chippewa Valley land use raster dataset to it. From there, the user would sign in to their ArcGIS Online account through ArcGIS Pro in a similar way to the last section. Then, the user would create a new project and connect to their new file geodatabase- adding the embedded raster file to the project. Next, the user would enter the metadata to the general tab in the raster properties. Lastly, the project was shared by going to Share > Web Layer > Publish Web Layer, and all the subsequent settings in the Service Editor Wizard would be established, analyzed, and published in the same way as the previous section.
Part 3:
For this part of the lab, a Map document was created in ArcMap and two feature class layers were imported to the geodatabase on UWEC's ArcGIS server- a Hurricanes and an Earthquakes layer. The Hurricane layer displays projected paths of all hurricanes in the Atlantic from the year 2000 and 2009. The Earthquake layer shows point locations for all earthquakes in the United States between the same nine-year span.
In ArcMap, both the Hurricanes layer and Earthquakes layer were separated into three classes, using a graduated symbology for Earthquakes and a graduated color symbology for Hurricanes. From there, the time interval setting in the layer properties was enabled and the correct column was used for the Time Field setting.
Once the time interval was established, the service was published to the ArcGIS server and then imported as a Web Service in ArcGIS Online through the Add Layer from Web function in the platform. The service was edited and cleaned up in ArcGIS Online's Map Viewer.
Discussion
Overall, there are many different ways to create and publish web services to ArcGIS Online, and I'm sure, in other various platforms as well. Depending on the user's experience with ArcGIS Online, ArcMap, and ArcGIS Pro, which method is preferred is up to the user's discretion. Personally, I thought publishing a Web Service to ArcGIS Online through ArcMap was my preferred method. This is most likely due to the fact that I'm well versed in ArcMap and connecting to ArcGIS Online from that platform, and not so comfortable with the other methods.
Each method is useful in not only being flexible with ESRI products and the different ways to publish web services with them, but also in understanding web GIS fundamentals. These include: understanding connections between the desktop interface, the university server, and ArcGIS Online. Publishing services to and from UWEC's ArcGIS server helped me to better understand the movement, storage, and exchange of data within the ESRI products I use almost everyday.
Although I was able to publish everything correctly, I did run into some issues in this lab. When I attempted to complete Part 2 - Section 1 of this lab, my student server wasn't set up properly and the service wouldn't publish to the server correctly. A new server was set up for me and I was able to publish without fail.
No comments:
Post a Comment