You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(stplanr)
data_dir<- system.file("extdata", package="stplanr")
unzip(file.path(data_dir, "smallsa1.zip"))
unzip(file.path(data_dir, "testcycleway.zip"))
sa1income<- as(sf::read_sf("smallsa1.shp"), "Spatial")
#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded#> datum Unknown based on GRS80 ellipsoid in CRS definitiontestcycleway<- as(sf::read_sf("testcycleway.shp"), "Spatial")
cway_catch<- calc_catchment(
polygonlayer=sa1income,
targetlayer=testcycleway,
calccols= c("Total"),
distance=800,
projection="austalbers",
dissolve=TRUE
)
#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum Unknown based on GRS80 ellipsoid in CRS definition,#> but +towgs84= values preserved#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum Unknown based on GRS80 ellipsoid in CRS definition,#> but +towgs84= values preserved#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum Unknown based on GRS80 ellipsoid in CRS definition,#> but +towgs84= values preserved#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum Unknown based on GRS80 ellipsoid in CRS definition,#> but +towgs84= values preserved#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum Unknown based on GRS80 ellipsoid in CRS definition,#> but +towgs84= values preserved#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum Unknown based on GRS80 ellipsoid in CRS definition,#> but +towgs84= values preserved#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded datum Unknown based on GRS80 ellipsoid in CRS definition,#> but +towgs84= values preserved#> Warning: `funs()` is deprecated as of dplyr 0.8.0.#> Please use a list of either functions or lambdas: #> #> # Simple named list: #> list(mean = mean, median = median)#> #> # Auto named with `tibble::lst()`: #> tibble::lst(mean, median)#> #> # Using lambdas#> list(~ mean(., trim = .2), ~ median(., na.rm = TRUE))#> This warning is displayed once every 8 hours.#> Call `lifecycle::last_warnings()` to see where this warning was generated.#> Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO"): Discarded#> datum Unknown based on GRS80 ellipsoid in CRS definition
plot(sa1income)
plot(cway_catch, add=TRUE, col="green")
plot(testcycleway, col="red", add=TRUE)
sa1income<-sf::read_sf("smallsa1.shp")
testcycleway<-sf::read_sf("testcycleway.shp")
f= list.files(".", "testcycleway|smallsa1")
file.remove(f)
#> [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUEcway_catch<- calc_catchment(
polygonlayer=sa1income,
targetlayer=testcycleway,
calccols= c("Total"),
distance=800,
projection="austalbers",
dissolve=TRUE
)
#> Warning: attribute variables are assumed to be spatially constant throughout all#> geometries#> Error in UseMethod("st_agr<-"): no applicable method for 'st_agr<-' applied to an object of class "c('grouped_df', 'tbl_df', 'tbl', 'data.frame')"
Heads-up @richardellison here's a reproducible example:
Created on 2020-05-01 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: