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

Commit

Permalink
point to app directory for reading roads shapefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarasnick committed Oct 22, 2019
1 parent 81d8294 commit 809a4f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The U.S. Census Bureau defines primary (S1100) roadways as "generally divided, l

![](figs/us_primary_roads.png)

Secondary roads are described as "main arteries, usually in the U.S. highway, state highway, or county highway system" and "have one or more lanes of traffic in each direction, may or may not be divided, and usually have at-grade intersections with many other roads and driveways".
Secondary (S1200) roads are described as "main arteries, usually in the U.S. highway, state highway, or county highway system" and "have one or more lanes of traffic in each direction, may or may not be divided, and usually have at-grade intersections with many other roads and driveways".

This container returns the distance to the nearest primary road and the distance to the nearest secondary road for each geocoded address, as well as the total length of primary roads and the total length of secondary roads within a buffer (defaults to 300 m) around each address.

Expand All @@ -25,13 +25,13 @@ DeGAUSS arguments specific to this container:
**MacOS**

```
docker run --rm -v "$PWD":/tmp degauss/pepr_roadways:0.1 my_address_file_geocoded.csv
docker run --rm=TRUE -v "$PWD":/tmp degauss/pepr_roadways:0.2 my_address_file_geocoded.csv
```

**Microsoft Windows**

```
docker run --rm -v "%cd%":/tmp degauss/pepr_roadways:0.1 my_address_file_geocoded.csv
docker run --rm=TRUE -v "%cd%":/tmp degauss/pepr_roadways:0.2 my_address_file_geocoded.csv
```

In the above example call, replace `my_address_file_geocoded.csv` with the name of your geocoded csv file. Optionally, you can add another argument for buffer radius. Otherwise, the buffer will be 300 meters.
Expand Down
4 changes: 2 additions & 2 deletions _roadway_distance_and_length.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ message('\nloading and projecting S1100 roads shapefile...')
# roads1100 <- tigris::primary_roads(year=2018) %>%
# spTransform(CRS('+init=epsg:5072'))
# saveRDS(roads1100, "roads1100_sp_5072.rds")
roads1100 <- readRDS("roads1100_sp_5072.rds")
roads1100 <- readRDS("/app/roads1100_sp_5072.rds")

message('\nloading and projecting S1200 roads shapefile...')
# roads1200 <- rgdal::readOGR(dsn="all_TIGER_roads_2018.gpkg") %>%
# spTransform(CRS('+init=epsg:5072'))
# saveRDS(roads1200, "roads1200_sp_5072.rds")
roads1200 <- readRDS("roads1200_sp_5072.rds")
roads1200 <- readRDS("/app/roads1200_sp_5072.rds")

message('\nloading and projecting input file...')
raw_data <- suppressMessages(read_csv(args$file_name))
Expand Down

0 comments on commit 809a4f7

Please sign in to comment.