Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In the Contents pane, right-click the HPDBeats_North layer  layer name and select Attribute Table.

...

  1. In the Contents pane, right-click the HPDBeats_South layer name and select Attribute Table.

...

  1. In the Contents pane, right-click the HPDBeats layer  layer name and select Attribute Table.

...

  1. In the Contents pane, right-click the HPDBeats_North layer name and select Remove.
  2. In the Contents pane, right-click the HPDBeats_South layer name and select Remove.
  3. Above the ribbon, on the Quick Access toolbar, click the Save button.

...

  1. For ‘Input Features’, use the drop-down menu to select the HPDBeats layer.
  2. For ‘Output Feature Class’, rename the feature class from HPDBeats_Dissolve to “HPDDistricts”.
  3. For ‘Dissolve_Field(s)’, use the drop-down menu to select the District field, since this is the field containing the common district values you wish to dissolve on.
  4. Ensure that your Dissolve tool Parameters tab appears as shown below, and click Run.



  5. In the Contents pane, uncheck and recheck the new HPDDistricts layer to toggle it on and off the map and understand the result of the Dissolve tool.
  6. In the Contents pane, right-click the HPDDistricts layer  layer name and select Attribute Table.

...

  1. In the Contents pane, right-click the HPDBeats layer  layer name and select Remove.
  2. Above the ribbon, on the Quick Access toolbar, click the Save button.

...

  1. In the Contents pane, right-click the HPDDistricts layer  layer name and select Remove.

You will now work with a dataset containing the locations of all violent crimes (including murder, rape, aggravated assault, and robbery) occurring in 2010, as reported by HPD. Though the data has been pre-processed for this tutorial, the original data tables can be obtained online from the Houston Police Department Crime Statistics webpage at https://www.houstontx.gov/police/cs/crime-stats-archives.htm.

...

  1. In the Contents pane, right-click the HISDCrime2010_HISD layer  layer name and select Attribute Table.

...

  1. Close the HISDCrime2010_HISD table view.
  2. In the Contents pane, right-click the original HPDCrime2010 layer  layer name and select Remove.
  3. In the Contents pane, right-click the HISD layer name and select Zoom To Layer.
  4. In the Contents pane, uncheck the HPDCrime2010_HISD and HISD layers, so that only the HPDDistricts_HISD layer is visible.
  5. Above the ribbon, on the Quick Access toolbar, click the Save button.

...

  1. At the bottom of the Geoprocessing pane, click the Catalog tab.
  2. In the Catalog pane, within the Geoprocessing geodatabase, right-click the HISDElemSchools feature class and select Add To Current Map.
  3. In the Contents pane, right-click the HISDElemSchools layer  layer name and select Attribute Table.

...

  1. At the bottom of the Catalog pane, click the Geoprocessing tab.
  2. At the top of the Geoprocessing pane, click the Back arrow button.
  3. Within the already expanded Analysis Tools toolbox, click the Proximity toolset > Buffer tool.
  4. For ‘Input Features’, use the drop-down menu to select the HISDElemSchools layer.
  5. For ‘Output Feature Class’, rename the feature class from HISDElemSchols_Buffer to “HISDElemSchools_HalfMileBuffer”.
  6. For ‘Distance [value or field]’, type “0.5” and use the unit drop-down menu to select Miles.
  7. Click Run.
  8. In the Contents pane, right-click the HISDElemSchools_HalfMileBuffer layer  layer name and select Attribute Table.

...

  1. Close the HISDElemSchools_HalfMileBuffer table view.
  2. In the Contents pane, uncheck the HISDElemSchools layer and  layer and check the HPDCrime2010_HISD layer.
  3. Above the ribbon, on the Quick Access toolbar, click the Save button.

...

The goal of performing this spatial join is to add a numeric field to the end of the school buffer attribute table that tells you how many crime points are contained within each school buffer.

...

The 'Field Map of Join Features' describes how the features will be summarized as they are joined. The first half of the list of fields displays the attributes of the school buffer layer, ending with the Shape_Area field. The second half of the list of fields, beginning with the Date field, displays the attributes of the crime layer. A count field showing indicating how many crime points intersect with each half-mile buffer will automatically be provided, but, s. Since many crimes will be appended to each school buffer, it does not make sense to generate summary statistics about the crime fields, since things because variables like offense type, premise code, and address cannot be averaged. By default, the table would actually output only the attributes of the first crime encountered within each buffer, which could be very misleading. Therefore, you will remove all the crime attributes from the output fields.

  1. Within 'Output Fields', click the Date field.
  2. Hold down Shift and click the last Address field, so that all of the crime fields are selected, as shown below.



  3. Right-click on the  the selected Address field and select Remove.
  4. Ensure that your Spatial Join tool Parameters tab appears as shown below and click Run.



  5. In the Contents pane, right-click the new HISDElemSchools_HalfMileBuffer_WithCrimeStats layer  layer name and select Attribute Table.

Notice the newly added Join_Count field. This field tells you how many crime points are contained within each school buffer.

  1. Close the HISDElemSchools_HalfMileBuffer_WithCrimeStats table view.

Notice also that only the fields from the schools attribute table have been included in the result, because we removed all the crime fields from the output.

  1. Close the HISDElemSchools_HalfMileBuffer_WithCrimeStats table view.

Since the newly joined schools Since the newly joined buffer layer contains all of the same information as the original schools buffer layer, plus the new Join_Count and Sum fields field, you no longer need the original buffer layer. Since your crime data has now been summarized, you no longer need the original crime points either.

  1. In the Contents pane, right-click the HISDElemSchools_HalfMileBuffer layer  layer name and select Remove.
  2. In the Contents pane, right-click the HPDCrime2010_HISD layer name and select Remove.
  3. Right-click the HISDElemSchools_HalfMileBuffer_WithCrimeStats layer name and select select Symbology.

The Symbology pane..pane has opened on the right as a new tab on top of the Geoprocessing pane.

  1. For ‘Primary symbology‘Symbology', use the drop-down menu to select Graduated Colors.
  2. For ‘Field:’‘Field’, use the drop-down menu to select the Join_Count field.In the ‘Color Scheme:’ box, leave the default selection of Graduated colors.
  3. Under the 'Upper Value value' column, click the first upper value box 23.000000 and type “25” and press Enter to move to the next range.
  4. Type “50” and press Enter.
  5. Type 100” and press Enter.
  6. Type 150” and press Enter.
  7. Leave upper bound.
  8.  Enter.
  9. Click the second upper value and type “50” and press Enter.
  10. Click the third upper value and type “100” and press Enter.
  11. Click the fourth upper value and type “150” and press Enter.

Leave the fifth upper value as is, since this is the true upper value for the dataset. You can now easily tell which schools have the largest number of violent crimes occurring within a half mile radius.

...

  1. In the Contents pane, right-click the HISDElemSchools layer name and select Attribute Table.
  2. Scroll to the right and browse through all of the attributes.

Remember that, at this point, the attribute table only contains the school name, address, and grade range.

  1. Close the HISDElemSchools table view.
  2. In the Contents pane, right-click the HISDElemSchools layer name and select Joins and Relates > Spatial Join.
  3. For ‘Join Features’, use the drop-down box to select the HPDDistricts_HISD layer.
  4. For ‘Output Feature Class,’ rename the feature class from HISDElemSchools_SpatialJoin to “HISDElemSchools_WithHPDDistricts".
  5. Click Run.

...

  1. Right-click the HISDElemSchools_WithHPDDistricts layer  layer name and select Attribute Table.
  2. Scroll to the right and notice the newly added District field. The District field tells you which police district each school falls within.

...