Skip to content

Commit

Permalink
cicd: Do not run st_network_iso example for now because of GEOS versi…
Browse files Browse the repository at this point in the history
…on 🤖
  • Loading branch information
luukvdmeer committed Nov 17, 2024
1 parent 06dcf5b commit 4ffefe5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
18 changes: 11 additions & 7 deletions R/iso.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,21 @@
#' oldpar = par(no.readonly = TRUE)
#' par(mar = c(1,1,1,1))
#'
#' center = st_centroid(st_combine(st_geometry(roxel)))
#' # Note that this function requires GEOS >= 3.11!
#' if (compareVersion(sf_extSoftVersion()[["GEOS"]], "3.11.0") > -1) {
#'
#' net = as_sfnetwork(roxel, directed = FALSE)
#' center = st_centroid(st_combine(st_geometry(roxel)))
#'
#' iso = net |>
#' st_network_iso(node_is_nearest(center), c(1000, 500, 250), ratio = 0.3)
#' net = as_sfnetwork(roxel, directed = FALSE)
#'
#' colors = c("#fee6ce90", "#fdae6b90", "#e6550d90")
#' iso = net |>
#' st_network_iso(node_is_nearest(center), c(1000, 500, 250), ratio = 0.3)
#'
#' plot(net)
#' plot(st_geometry(iso), col = colors, add = TRUE)
#' colors = c("#fee6ce90", "#fdae6b90", "#e6550d90")
#'
#' plot(net)
#' plot(st_geometry(iso), col = colors, add = TRUE)
#' }
#'
#' par(oldpar)
#'
Expand Down
4 changes: 2 additions & 2 deletions vignettes/sfn05_routing.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ ggraph(net, "sf") +
theme_void()
```

### Isodistance polygons
<!-- ### Isodistance polygons
With respect to a given point $p$ and a given distance $d$, an isodistance is the line for which it holds that the distance from any point on the line from $p$ is equal to $d$. In spatial network analysis, it is common to find all nodes that fall within an isodistance line computed for a given source node $p$. By enclosing this nodes with a concave hull, we obtain a *isodistance polygon*.
Expand Down Expand Up @@ -457,7 +457,7 @@ plot(net, col = "darkgrey")
plot(sub_net, col = "orange", lwd = 2, cex = 1, add = TRUE)
```
Both `st_network_iso()` and `to_spatial_neighborhood()` allow to specify other edge weights than geographic distance. This can be done through the `weights` argument, as explained [here](#specifying-edge-weights). When using time as edge weight, we talk about *isochrones* instead of *isodistances*.
Both `st_network_iso()` and `to_spatial_neighborhood()` allow to specify other edge weights than geographic distance. This can be done through the `weights` argument, as explained [here](#specifying-edge-weights). When using time as edge weight, we talk about *isochrones* instead of *isodistances*. -->

### Custom routing

Expand Down

0 comments on commit 4ffefe5

Please sign in to comment.