Skip to contents

The following treatments are performed:

  • data is adapated consistently with theme

  • only data corresponding to flood hazards are kept

  • if scope is given, a subpart of data is also saved

Usage

analyse_intersection(
  x,
  y,
  analysis = c("intersect", "proportion"),
  verbose = TRUE
)

analyse_eaip(x, eaip, analysis = "intersect", verbose = TRUE)

Arguments

x

sf object, spatial DB that is analysed.

y

sf object, spatial DB that is used for the analysis.

analysis

character, analyses that is performed. Default to c("intersect", "proportion"). See details.

verbose

logical, should the function gives some messages. Default to* TRUE.

eaip

sf objectf, eaip DB that is used for the analysis.

Value

analyse_intersection returns a data.frame, whose columns contain analyses performed.

analyse_eaip returns a sf object, basically x with added columns for each analysis performed.

Functions

  • analyse_eaip(): Analyse intersections between spatial DB and eaip DB

Author

Frédéric Grelot

Examples


if (FALSE) {
origin = "data-local/georisques/gaspar"
adapt_gaspar(file.path(origin))
adapt_gaspar(file.path(origin, "2022-02-28"), scope = list("so_ii" = so.ii::so_ii_scope))
}