Skip to content
Permalink
Browse files

refresh data, adding json using lfs

  • Loading branch information...
mdlincoln committed Feb 22, 2019
1 parent f8abcdb commit 62faad1163a36ac86c554f0cafd93d9c685042b5
Showing with 503,060 additions and 499,464 deletions.
  1. +1 −0 .gitattributes
  2. +3 −3 legacy/combinatorics-code/.vscode/settings.json
  3. BIN osmar/output_data/bridge_centroid_sf.rda
  4. +32 −0 osmar/output_data/distance_matrices/README.md
  5. +455 −0 osmar/output_data/distance_matrices/all/all_distance_matrix.csv
  6. +2,245 −0 osmar/output_data/distance_matrices/bridge_node_correspondence.csv
  7. +455 −0 osmar/output_data/distance_matrices/inter_bridge/inter_distance_matrix.csv
  8. +455 −0 osmar/output_data/distance_matrices/intra_bridge/intra_distance_matrix.csv
  9. +0 −12 osmar/output_data/interbridge_distance/README.md
  10. +3 −346 osmar/output_data/paths/edge_steps.json
  11. +15,545 −14,864 osmar/output_data/paths/path_details.csv
  12. +969 −672 osmar/output_data/paths/path_ordered_list.html
  13. +108 −108 osmar/output_data/paths/path_ordered_list_bridges_only.html
  14. +1 −1 osmar/output_data/paths/path_summary.csv
  15. BIN osmar/output_data/paths/pathway_sf.rda
  16. +3 −181 osmar/output_data/pgh_bundles.json
  17. +278,532 −278,451 osmar/output_data/pgh_edges.csv
  18. +3 −3 osmar/output_data/pgh_leaflet.html
  19. +3 −45 osmar/output_data/pgh_leaflet_files/leaflet-providers-1.1.17/package.json
  20. +3 −690 osmar/output_data/pgh_leaflet_files/leaflet-providers-1.1.17/providers.json
  21. +137,439 −137,292 osmar/output_data/pgh_nodes.csv
  22. +38,746 −0 osmar/output_data/simplified/simplified_pgh_edges.csv
  23. +28,059 −0 osmar/output_data/simplified/simplified_pgh_nodes.csv
  24. +0 −38,742 osmar/output_data/simplified_pgh_edges.csv
  25. +0 −28,054 osmar/output_data/simplified_pgh_nodes.csv
@@ -1 +1,2 @@
pgh_osm.xml filter=lfs diff=lfs merge=lfs -text
*.json filter=lfs diff=lfs merge=lfs -text
Git LFS file not shown
Binary file not shown.
@@ -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...
}
```

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 62faad1

Please sign in to comment.
You can’t perform that action at this time.