visor

The goal of visor is to provide a set of tools for visibility analysis.

2
contributors
Get started
58 commitsLast commit ≈ 1 week ago0 stars0 forks

Description

visor

R-CMD-check

The goal of visor is to provide a set of tools for visibility analysis.

Installation

You can install the development version of visor from
GitHub with:

# install.packages("pak")
pak::pak("CityRiverSpaces/visor")

Example

This is a basic example which shows you how to solve a common problem:

library(visor)
library(sf)

occluders_geom <- st_sfc(
  create_occluder(1, 1, 1, 0.5),
  create_occluder(4, 1, 1.5, 0.7),
  create_occluder(7, 1, 0.8, 0.8),
  create_occluder(2, 5, 2, 1),
  create_occluder(5, 5, 1, 1.5),
  create_occluder(1, 7, 1.2, 0.6),
  create_occluder(7, 7, 1.8, 0.9))
occluders <- st_sf(id = 1:7, geometry = occluders_geom)

line_geom <- st_sfc(st_linestring(matrix(c(0, 3, 9, 3), ncol = 2, byrow = TRUE)))
line <- st_sf(id = 1, geometry = line_geom)

vpoints <- get_viewpoints(line, 1)

isovist <- get_isovist(vpoints, occluders, ray_num = 160, ray_length = 5,
                       remove_holes = FALSE)

plot(isovist, col = "blue")
plot(occluders_geom, col = "grey", add = TRUE)
plot(line_geom, col = "lightblue", add = TRUE)
plot(vpoints, col = "red", add = TRUE)

Keywords
Programming language
  • R 100%
License
</>Source code

Participating organisations

Delft University of Technology
Netherlands eScience Center

Contributors

Related projects

CRiSp

City River Spaces, a tool for automated and scalable delineation of urban river spaces with spatial-temporal big data

Updated 13 months ago
In progress

Related software

CRiSp

CR

CRiSp (City River Spaces) provides tools to automate the morphological delineation of riverside urban areas.

Updated 2 months ago
4

rcoins

RC

Identify continuous lines in a spatial network.

Updated 2 months ago
4