One of our reporters recently wanted to get a visual picture of shootings around housing projects over a few months and came to me, because he know that I am using ArcView for mapping. What sounded like a simple project - plotting a list of shooting locations onto a street map of Allentown - turned out much more difficult than imagined, mostly because the location data was inconsistent.
Instead of having an exact street address, the shooting location field often contained an intersection or general block on which the shooting occurred. Geocoding didn't seem to be an option, at least not for the precise placement wanted. But because we were looking at only a couple dozen incidents, I decided to map them by hand.
First, I added a map shapefile of city streets that the city's GIS department provided. This street map - like many created by municipal agencies - is more often updated and corrected than the TIGER mapping files provided by the U.S. Census Bureau. The data did not include housing project boundaries, so reporter Keith Herbert and I drove to them and jotted down the streets around the perimeter of the projects. Later, in ArcView 8, we created a new layer for the polygon boundary.
Using computerized crime data provided by the city police department, I created a spreadsheet containing the incidents to map as points. Each record had basic information about the shooting and a unique identifier that I created, something needed to create a point map. I saved that to a dBASE file and added it as a table to the project.
Then I got stuck trying to figure out how to join the crimes to points on the city map. After posting a query on the NICAR and ESRI listservs, several people suggested that I create a new point file with no data and join it to the list of shootings.
Here are the steps:
With streets and project layers in a view, I created a new, separate shapefile. In ArcView 8, you do that in the ArcCatalog application. Right click on the drive location where you want to store it and choose New/Shapefile. Name the file and make sure that it is a point file.
After adding the point shapefile to a view in ArcMap, open its attribute table and you will see that it is empty, except for three fields.
Second, I opened the dBASE file of shooting incidents and arranged the table window and map window so I could see both. With the new shapefile opened for editing, I used the Create New Feature pointer tool. For each shooting location listed in the dBASE file, I created a point on the map that was as close as possible to the location described. Each time I clicked on the map to add a new point, ArcMap created a new record in the shapefile.
To avoid confusion, I worked with one point at a time. I copied the unique ID number of the shooting into the ID field of my new point shapefile, periodically saving the file.
In a couple of hours, I had a new map of about two dozen shooting locations, which I then joined to the file of shooting data on the common ID field for further analysis. The dBASE file and new shapefile could also be merged into one file, if you prefer, but I kept mine separate.
Unfortunately, the story never made it to print as we originally envisioned it, but the map gave us the ability to add new analysis to the subject, which was essential in deciding whether the story was worth pursuing.
Contact James E. Wilkerson by e-mail at james.wilkerson@mcall.com