Assignment 6

Geoprocessing emergency rooms, walking to Taco Bell

Use ArcGIS Online to perform spatial analysis. Map the population of Baton Rouge, then create an app to analyze how many people live within 10 minutes of a hospital. The app will allow you to add different layers to analyze: how many people live within a 5-minute walk of a Taco Bell, 15-minute drive of a library, etc.

Table of Contents

Finished Example

Drive-time Areas
Screenshot of an app that uses the Analysis Widget, which requires users to sign into ArcGIS Online.

Data

This assignment uses feature layers already hosted in ArcGIS Online. Your app will use the population layer below, but in the Try It section you will run an analysis on a layer you find. Keep in mind that for layers to work with the analysis tools in this exercise:

Population layer

Title: Baton Rouge MSA Block Group Points
Geometry type: Points
Summary: Centroids of census block groups within the Baton Rouge Metropolitan Statistical Area, including 2010 U.S. Census demographic information and 2018 population estimates. This layer provides population data as points so the layer can be used in the “Summarize Within” tool to count population within a polygon.
Service URL: https://services9.arcgis.com/SDQDNhpG8jikA0D1/arcgis/rest/services/Baton_Rouge_MSA_Block_Group_Points/FeatureServer

Polygons to points
Block group polygons were converted to points to easily use them in the Summarize Within tool during our analysis. Each point has a population attribute for the number of people living in that area according to the 2018 population estimates.

Example layer: Hospitals

Title: Baton Rouge MSA Emergency Rooms 2020
Geometry type: Points
Summary: Hospitals offering emergency services in the Baton Rouge Metropolitan Statistical Area as of March 2020.
Service URL: https://services9.arcgis.com/SDQDNhpG8jikA0D1/arcgis/rest/services/Baton_Rouge_MSA_Emergency_Rooms/FeatureServer

Steps

Part 1: Create a map

  1. Go to the ArcGIS Online Map Viewer Classic to create and save a new map called “Baton Rouge Population Block Groups”.
  2. In the map viewer, click Add > Add Layer from Web, paste the service URL for the Population layer.
  3. Uncheck the box next to the population layer so it is not visible on the map. It doesn’t need to be visible to use its population data in our analysis.
  4. Change the basemap if desired.
  5. Save the map and share it with Everyone. In the Create a New Web App box, click the Web AppBuilder tab and name the app Service Area Population Analysis. Click Get Started.

Part 2: Create an app

  1. You should now see Web AppBuilder, which lets you create ArcGIS Online apps with more flexibility than the configurable apps we’ve used in previous assignments.
    Web AppBuilder
    The initial view of Web AppBuilder.

  2. Note the four main tabs on the left side of the page:
    • Theme: changes the layout and colors of your app. This can affect how many widgets you can add.
    • Map: edits the map displayed in your app or selects a different one.
    • Widget: adds tools to the app.
    • Attribute: changes additional options.
  3. Click the Widget tab. Widgets are tools that let the user interact with the app and map, e.g., zoom, view attribute table, view the map legend, and perform analyses. In the default Foldable Theme, there are two areas where additional widgets can be added.
    Web AppBuilder widgets
    This is the widget tab of Web AppBuilder showing possible widget areas, with red boxes showing where widgets will appear in the app when added to different widget areas.

  4. On the Widget tab, click the gray box at the bottom for Widget 1. This will show all of the available widgets. Click the Add Data widget and OK. This will allow your app’s users to add a layer to the map while using your app.
  5. Click the next widget slot and click Analysis.
  6. You should now see the Configure Analysis options, where you can choose specific analysis tools to allow in the widget (see Perform Analysis for details on each tool).
  7. Check the boxes for:
    • Create Drive-Time Areas
    • Summarize Within
  8. Click the settings icon for each of the tools above and check Allow to export results
  9. Click OK to add the widgets to the app, then click Save. Widget settings will not be saved until you click Save.
  10. Now you can launch the app.

Part 3: Run analysis

  1. After launching the app, click the Add Data widget, go to the URL tab, and paste the service URL of the Baton Rouge MSA Emergency Rooms layer to add hospital locations to the map: https://services9.arcgis.com/SDQDNhpG8jikA0D1/arcgis/rest/services/Baton_Rouge_MSA_Emergency_Rooms/FeatureServer
    You should see hospital locations added to the map.
  2. Now open the Analysis widget. Click the Create Drive-Time Areas tool. In the configuration, set:
    • Choose point layer to calculate drive-time areas around: hospitals (emergency rooms) layer
    • Measure: Driving Time, 10, minutes
    • Travel direction: Towards Facility
    • Areas from different points: Split
    • Use current map extent: checked, but make sure you can see all points on your map
  3. Click Show credits to make sure the credit usage is reasonable (6.5 credits for 13 hospitals in this example).
  4. Click Run Analysis.
  5. When the task completes, close the analysis tool and view the results on the map. You will see asymmetric polygons around each hospital location, representing the area for which a drive to the hospital would take 10 minutes or less.
  6. Now we need to count the population within those drive-time polygons. Click the Analysis widget again and this time choose the Summarize Within tool with the following settings:
    • Choose the polygon layer: your drive-time polygons layer
    • Choose a layer to summarize: population points layer
    • Count of points: unchecked
    • Add statistics from the layer to summarize: POP2018, Sum
    • Result layer name: Hospital Service Area Population
    • Use current map extent: checked, but make sure you can see all points on your map
  7. Check the credit usage, run the analysis, and once the task completes, close the Analysis widget.
  8. On the map, click one of the polygons in the new Hospital Service Area Population polygons (you can hide the old polygon layer using the Layer List widget). In the popup, there should be a new field added: Sum population. This is the number of people who live within a 10-minute drive of that hospital.
    Service area population
    “Sum population” is the total number of people living within a 10-minute drive of this hospital.

Try it

  1. Reload your app to clear the hospitals and service areas.
  2. Use the Add Data widget to add a new layer in your app. This could be your points of interest from Assignment 3, a layer you find in ArcGIS Online, or any other sources. For example, you could search for Taco Bell and add the layer in the results from EsriMedia. Make sure you are zoomed into the Baton Rouge area so you do not run the analysis nationwide.
  3. Calculate the service area population for the new layer, e.g., how many people live within a 5-minute drive of a Taco Bell.
  4. Find the service area polygons layer with population you just created in Step 3 in your Content and go to its Item Details page. Fill out the fields:
    a. Title
    b. Summary
    c. Description (<200 words):
    1. Explain what the layer is, how it was created.
    2. Give example population count for one of the locations in the layer you chose, e.g., “Our Lady of the Lake Livingston has a 10-minute drive service area population of 9,717.”
    3. Link to your app.
      d. Terms, such as “None” or “CC BY-SA”.
      e. Credit the source of any data used to generate your layer
  5. For the link you will submit on Moodle, copy the link to your layer’s Item Details page using the social icons on the right side of the page:
    Share icons on the Item Details page
    Get the link to your Item Details page by clicking the Link icon.

Checklist

  1. Item Details page with basic info for the feature layer of the service areas you generated with your app.
  2. Description of the layer and how it was generated.
  3. Example population for one of your locations, given in the Description.
  4. Link to your app in the Description.

Submit

  1. The URL to the Item Details page of your feature layer. Example: https://www.arcgis.com/home/item.html?id=ABC123 or https://arcg.is/ABC123
Top