Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jeff Stern - Assignment #2 Submission #1

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

data/PWD_PARCELS.zip
data/PWD_PARCELS/PWD_PARCELS.cpg
data/PWD_PARCELS/PWD_PARCELS.dbf
data/PWD_PARCELS/PWD_PARCELS.prj
data/PWD_PARCELS/PWD_PARCELS.shp
data/PWD_PARCELS/PWD_PARCELS.shx
data/PWD_PARCELS/PWD_PARCELS.xml
shapefile-importer.py
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@

1. Which bus stop has the largest population within 800 meters? As a rough estimation, consider any block group that intersects the buffer as being part of the 800 meter buffer.

Snyder Ave & 9th Street - 100,130


2. Which bus stop has the smallest population within 800 meters?

**The queries to #1 & #2 should generate relations with a single row, with the following structure:**
Expand All @@ -36,6 +39,8 @@
)
```

Norcom Rd & Charter Rd - MBFS - 2

3. Using the Philadelphia Water Department Stormwater Billing Parcels dataset, pair each parcel with its closest bus stop. The final result should give the parcel address, bus stop name, and distance apart in meters. Order by distance (largest on top).

**Structure:**
Expand All @@ -57,14 +62,53 @@
)
```

Bucks County Community College (46,504m; 28miles)
Oxford Valley Mall (43,658m)

5. Rate neighborhoods by their bus stop accessibility for wheelchairs. Use Azavea's neighborhood dataset from OpenDataPhilly along with an appropriate dataset from the Septa GTFS bus feed. Use the [GTFS documentation](https://gtfs.org/reference/static/) for help. Use some creativity in the metric you devise in rating neighborhoods. Describe your accessibility metric:

**Description:**


I started by download neighborhoods_philadelphia from OpenDataPhilly
and used python to import into postgis and created a `neighborhoods_philadelphia` table.

My accessibility metric is going to be composed of two measures:
1) the percentage of bus stops within a neighborhood that are wheelchair accessible
2) the density of bus stops within the neighborhood (eg. 0.8 stops / 100m^2).

This second measure is important to include given that most neighborhoods
have near 100% wheelchair accessible bus stops. The theory is that if a a neighborhood
is dense with bus stops then they are easier to travel to and use by people.

The score is calculated by multiplying these two values together, and then multiplying
this by a factor of 10 to get a human-friendly score.


Example: Rittenhouse (Accessibility score of 67.71)
1) 96.1% – 103 bus stops of which 99 are wheelchair accessible
2) .000007 - 103 bus stops across 14,620,958 square meters (about 5.65 square miles)

~96.1% * ~.000007 * 10^7 provides the score of 67.71.

6. What are the _top five_ neighborhoods according to your accessibility metric?

1. Washington Square (78.70)
2. Newbold (76.57)
3. Spring Garden (70.84)
4. Hawthorne (70.57)
5. Francisville (69.56)

7. What are the _bottom five_ neighborhoods according to your accessibility metric?

6. Industrial (2.43)
7. Airport (2.05)
8. Navy Yard (1.75)
9. West Torresdale (1.72)
10. Port Richmond (1.17)

I'm realizing a more mature version of this metric might be more based off total number of roads, rather than overall area since there are likely fewer roads in Airport + Navy Yard neighborhoods. I'm also confused why the data set is onlyshowing two bus stops in Port Richmond – there should definitely be more than that (on Aramingo Ave and Richmond St).

**Both #6 and #7 should have the structure:**
```sql
(
Expand Down
Binary file added data/.DS_Store
Binary file not shown.
Binary file added data/Neighborhoods_Philadelphia.zip
Binary file not shown.
Binary file added data/Neighborhoods_Philadelphia/.DS_Store
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["NAD_1983_StatePlane_Pennsylvania_South_FIPS_3702_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",1968500.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-77.75],PARAMETER["Standard_Parallel_1",39.93333333333333],PARAMETER["Standard_Parallel_2",40.96666666666667],PARAMETER["Latitude_Of_Origin",39.33333333333334],UNIT["Foot_US",0.3048006096012192]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
139 changes: 139 additions & 0 deletions data/Neighborhoods_Philadelphia/Neighborhoods_Philadelphia.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<metadata>
<idinfo>
<citation>
<citeinfo>
<origin>Azavea Incorporated</origin>
<pubdate>2013-03-17</pubdate>
<title>Philadelphia Neighborhoods</title>
<geoform>vector digital data</geoform>
</citeinfo>
</citation>
<descript>
<purpose>Azavea developed this boundary file for informational purposes. It was originally derived from Philadelphia Police Department data, and augmented by research and experiential knowledge of Azavea staff. The file is topologically clean, with no gaps or overlaps. The outer boundary is snapped to the 2012 TIGER file representation of Philadelphia County. This file is accurate at a scale of 1:24000.</purpose>
</descript>
<spdom>
<bounding>
<westbc>-75.284128</westbc>
<eastbc>-74.954050</eastbc>
<northbc>40.143859</northbc>
<southbc>39.861286</southbc>
</bounding>
</spdom>
<keywords>
<theme>
<themekt>None</themekt>
<themekey>Philadelphia</themekey>
<themekey>neighborhoods</themekey>
<themekey>Azavea</themekey>
</theme>
</keywords>
<accconst>None</accconst>
<useconst>This file is released under the Creative Commons 3.0 license. Please refer to http://creativecommons.org/licenses/by/3.0/us/ and attribute the data to Azavea Incorporated.</useconst>
<native>Microsoft Windows 7 Version 6.1 (Build 7601) Service Pack 1; Esri ArcGIS 10.1.0.3035</native>
</idinfo>
<spdoinfo>
<direct>Vector</direct>
<ptvctinf>
<sdtsterm>
<sdtstype>GT-polygon composed of chains</sdtstype>
<ptvctcnt>158</ptvctcnt>
</sdtsterm>
</ptvctinf>
</spdoinfo>
<spref>
<horizsys>
<planar>
<mapproj>
<mapprojn>Lambert Conformal Conic</mapprojn>
<lambertc>
<stdparll>39.93333333333333</stdparll>
<stdparll>40.96666666666667</stdparll>
<longcm>-77.75</longcm>
<latprjo>39.33333333333334</latprjo>
<feast>1968500.0</feast>
<fnorth>0.0</fnorth>
</lambertc>
</mapproj>
<planci>
<plance>coordinate pair</plance>
<coordrep>
<absres>0.000000026907964745248598</absres>
<ordres>0.000000026907964745248598</ordres>
</coordrep>
<plandu />
</planci>
</planar>
<geodetic>
<horizdn>D North American 1983</horizdn>
<ellips>GRS 1980</ellips>
<semiaxis>6378137.0</semiaxis>
<denflat>298.257222101</denflat>
</geodetic>
</horizsys>
</spref>
<eainfo>
<detailed>
<enttyp>
<enttypl>neighborhoods_azavea_2013_03_07</enttypl>
</enttyp>
<attr>
<attrlabl>FID</attrlabl>
<attrdef>Internal feature number.</attrdef>
<attrdefs>Esri</attrdefs>
<attrdomv>
<udom>Sequential unique whole numbers that are automatically generated.</udom>
</attrdomv>
</attr>
<attr>
<attrlabl>Shape</attrlabl>
<attrdef>Feature geometry.</attrdef>
<attrdefs>ESRI</attrdefs>
<attrdomv>
<udom>Coordinates defining the features.</udom>
</attrdomv>
</attr>
<attr>
<attrlabl>NAME</attrlabl>
<attrdef>Name of feature, no special characters or spaces. All caps.</attrdef>
</attr>
<attr>
<attrlabl>LISTNAME</attrlabl>
<attrdef>Pretty name of feature.</attrdef>
</attr>
<attr>
<attrlabl>MAPNAME</attrlabl>
<attrdef>Pretty name of feature, appropriate for labeling.</attrdef>
</attr>
<attr>
<attrlabl>Shape_Leng</attrlabl>
<attrdef>Perimeter of feature in internal units.</attrdef>
</attr>
<attr>
<attrlabl>Shape_Area</attrlabl>
<attrdef>Area of feature in internal units squared.</attrdef>
<attrdefs>ESRI</attrdefs>
<attrdomv>
<udom>Positive real numbers that are automatically generated.</udom>
</attrdomv>
</attr>
</detailed>
</eainfo>
<distinfo>
<distliab>See access and use constraints information.</distliab>
<stdorder>
<digform>
<digtinfo>
<formname>Shapefile</formname>
<transize>0.251</transize>
</digtinfo>
<digtopt />
</digform>
</stdorder>
</distinfo>
<metainfo>
<metd>20130312</metd>
<metstdn>FGDC Content Standard for Digital Geospatial Metadata</metstdn>
<metstdv>FGDC-STD-001-1998</metstdv>
<mettc>local time</mettc>
</metainfo>
</metadata>
Binary file not shown.
3 changes: 3 additions & 0 deletions data/Neighborhoods_Philadelphia/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This file is released under the Creative Commons 3.0 license.

Please refer to http://creativecommons.org/licenses/by/3.0/us/ and attribute the data to Azavea Inc.
Binary file added data/PPR_StreetTrees-shp.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UTF-8
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Binary file not shown.
Binary file not shown.
1,337 changes: 1,337 additions & 0 deletions data/census_block_groups-2.csv

Large diffs are not rendered by default.

Loading