Methodologies
Average Street Shade per Segment Methodology
Layers needed
- City Limits (polygon)
- Streets (line)
- Canopy (polygon)
Steps
- Buffer the Streets layer to 20ft each. Be sure to use flat buffers in this step. This creates segments that have less overlap at intersections than if round buffers were used. The types of buffers used are displayed below.
- Clip the canopy layer to the streets buffer layer. You will now have the canopy that is only inside the streets. The image below shows the clip function loaded with the tree canopy in the input feature and the street buffered layer as the clip feature.
- Calculate the area of each street segment. Open your buffer (street buffer) attribute table. Create a new field in the attribute table titled shape_area and make sure to choose double for the “type”. Populate the newly created field by using the calculate geometry function. Select area as the calculation and click ok. We used square feet as the area measurement.
- Dissolve the canopy layer created in Step 2. Make sure to select the “create multi-part” feature on the bottom of the dissolve window. This creates a multi-parts part polygon.
- Create new field in the dissolved layer and use “calculate geometry” to calculate the area of the multipart polygon. This creates a unique field that will be used to identify polygons in the next step
- Preform a union using the streets buffer and dissolved canopy layer.
- Open the attribute table of the new union layer and delete the polygon features that contain the same value as the dissolved polygon area in field made in Step 5. This eliminates the canopy polygons leaving only the areas without shade.
- Create a new field within the union result layer table and use calculate geometry (area). This newly calculated field represents the area without shade, per segment.
- Perform a spatial join between the original street buffer layer and the union layer mentioned in the step 7. When preforming the join choose “within’ under the match option category, and set the street buffer layer as the target feature and the union layer as the join feature.
- Create a new field in the street buffer layer and use field calculator to subtract the area with no shade from the buffered area. This gives us field populated with the area of shade within each street.
- Create a new field in the street buffer layer that will contain the shade percent. To populate the field use the field calculator and divide the shaded area field by the buffered area field then multiply your result by 100 to get a percentage
- Perform one last spatial join to display the shade indices as lines so that we can adjust the line thickness for visual purposes. To do this perform a spatial join with the original streets layer as the target feature and the buffer layer as the join feature. This function will copy over the attribute table and associated values to the line files.
- To further the visual representation of the final layer we will assign a graduated color scheme to it. We will assign it to 4 equal intervals with a sampling size of 100,000.