Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
refresh data, adding json using lfs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlincoln committed Feb 22, 2019
1 parent f8abcdb commit 62faad1
Show file tree
Hide file tree
Showing 25 changed files with 503,060 additions and 499,464 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -1 +1,2 @@
pgh_osm.xml filter=lfs diff=lfs merge=lfs -text
*.json filter=lfs diff=lfs merge=lfs -text
6 changes: 3 additions & 3 deletions legacy/combinatorics-code/.vscode/settings.json
Git LFS file not shown
Binary file modified osmar/output_data/bridge_centroid_sf.rda
Binary file not shown.
32 changes: 32 additions & 0 deletions osmar/output_data/distance_matrices/README.md
@@ -0,0 +1,32 @@
# Bridge distance matrices

`bridge_node_correspondence.csv` contains a CSV with 2 columns:
- `node_index` maps to the `id` column in `osmar/output_data/pgh_nodes.csv`
- `bridge_id` maps to the `bridge_id` column in `osmar/output_data/pgh_edges.csv`. It indicates that this `node_index` is an entry/exit point for that bridge. Note: most nodes are an entry/exit point for only one bridge, however there are ~4 nodes that are incident to 2 edges that belong to different bridges - for example the [overpass at East 5th Avneue and Homstead Grays Bridge](https://www.openstreetmap.org/relation/9340973) are two bridges that intersect.

Each of the additional directories contains distance and path information for three versions of the graph:

- `all` The entire graph, including both bridges and roads
- `inter_bridge` The graph with all bridge edges removed
- `intra_bridge` The graph with all non-bridge edges removed

Each has two files:

`*_distance_matrix.csv` contains a CSV with an even number of rows and columns (~455 at last data export):
- The first column contains the origin node index numbers (these index numbers map to the `id` column in `osmar/output_data/pgh_nodes.csv`).
- The first row contains the destination node index numbers.
- Values are distance between those two nodes in meters along the edge path.
- Empty values indicate that a distance was not calculated - e.g., for `inter_distance_matrix.csv` because the origin and destination node belong to the same graph.
- `Inf` values indicate that the distance was infinite, i.e. the destination node was unreachable from the origin node.

`*_pathways.json` is a JSON file of nested objects. The first level of keys represent the origin node index number (these index numbers map to the `id` column in `osmar/output_data/pgh_nodes.csv`), with their child keys representing the target index number. Each of these child keys points to an array of edge index ids describing the pathway from origin to target in the full graph. These edge index ids map to the `id` column in `osmar/output_data/pgh_edges.csv`. Where no path was available, the array is empty:

```json
{
"530": {
"530": [],
"1548": [1603, 1604, 1605, 1606, 1601],
}
# etc...
}
```
455 changes: 455 additions & 0 deletions osmar/output_data/distance_matrices/all/all_distance_matrix.csv

Large diffs are not rendered by default.

0 comments on commit 62faad1

Please sign in to comment.