GreenInfo-Network / Stanford-BOE2017

0 stars 0 forks source link

Network Analyst #9

Closed ychaiu closed 5 years ago

ychaiu commented 6 years ago
ychaiu commented 6 years ago

Schools CSCD_2016_publicSchools_K12_centroids.zip

Retailers BOE2017_2018_01_17.zip

OD Matrix Routes SMP_RoutingND_OD_Cost_Matrix_Lines.zip

Service Area Half-Mile Schools SMP_RoutingND_Schools_ServiceArea_HalfMile.zip

Service Area Half-Mile Retailers SMP_RoutingND_Retailers_ServiceArea_HalfMile.zip

AmandaGIN commented 6 years ago

@ychaiu Explore if we are able to use Network Analyst to find all retailers within 1/2 mile (on roadway). We would need it to report: School CDS_Unique License Number Distance to (on road)

May not be possible and/or to much CPU needed to solve.

AmandaGIN commented 6 years ago

@ychaiu Using this file you created (1/2 mile of retailer) Service Area Half-Mile Retailers SMP_RoutingND_Retailers_ServiceArea_HalfMile.zip Find the count of schools within each polygon Use a spatial join - but you'll need to use ArcToolBox to allow for a One-to-Many join

Run this analysis twice

Try the SJ but if doesn't work on poly files use Intersect or Union.

Then summarize: Sheet 1 - Count of schools per retailer Sheet 2 - List of each retailer, repeat and then list school Sheet 3 - Matrix of retailer, and rows of schools (I can show you how to do in gSheets Unique, Transpose, Filter)

AmandaGIN commented 6 years ago

Can you also review the draft table I'll be sending Nina for any oddities: https://www.dropbox.com/s/2b4ywz2pbni13yj/Schools_to_Retailers_HalfMileNetworkAndEuclidean.xlsx?dl=0

ychaiu commented 6 years ago

Retailers_Service_Area_Schools_Summary.xlsx

School Centroids

Stacked School Boundary

Wasn't able to create the matrix since dataset was too large for import into Gsheets. Know of any other way to do this in Excel?

ychaiu commented 6 years ago

Retailers in 1/2 mile school service area

https://docs.google.com/spreadsheets/d/1OofYpsJ6HR-m5y89QzR3laxTtpzbdYkwGlLU2aZGv0U/edit#gid=0

ychaiu commented 6 years ago

Schools_ServiceArea_HalfMile_Retailers_Ranked.xlsx

Limited max stores (65) for each service area SMP - OD cost matrix, set to find closest 65 Filter those out over 0.5 mile Add rank (python script)

ychaiu commented 6 years ago

Yessenia

Run service area analysis with SMP dataset with following properties:

No hierarchy (to reduce generalization and reduce capturing roads that aren't traversable) Detailed polygons (to reduce holes that don't capture the network)

AmandaGIN commented 6 years ago

Given errors in Service Areas, the previous summary of retailer (point) to school (point/centroid) had 27,825 schools within a half-mile. This is 59 too many and is from the polygon extensions in populated areas. image

To fix this, the OD matrix results were used instead. There are 27,766 school centroids within a half-mile of a retailer point when traveling the street network using SMP.