In part C of the lab exercise, I generated three distinct maps: a grid-based thematic map, a kernel density map, and a local Moran’s I map, utilizing homicide data from 2017 to identify homicide hotspots within the city of Chicago, Illinois.
Initially,
for the grid-based thematic hotspot map, I employed a spatial join to
associate the grid cells with the 2017 homicide data. This process resulted in
a grid cell representation indicating the number of homicides per cell. I then
eliminated all cells with a count of zero and focused on the top 20% of grid
cells exhibiting the highest counts. To achieve this, I sorted the data based
on the count field in descending order and selected the first 62 records (which
corresponds to 20% of 311 records when rounded to the nearest whole number),
subsequently exporting these selected records to a new layer. A new integer
field named 'dissolved' was added, populated with the value of 1, and this
field was utilized to dissolve the feature class into a singular polygon.
I then
applied the reclassify tool to categorize the values into three classes: 0, 1,
and 2, as 2 being 3*mean and above. Following this, I employed the Raster to
Polygon tool; once the conversion to polygon was completed, I utilized the
select by attribute function to isolate features with a grid code value of 2,
thereby creating a new layer.



No comments:
Post a Comment