Skip to contents

This function retrieves data about Referentiel des Obstacles aux Ecoulement (ROE) within a specified region based on its ID.

Usage

data_get_roe_in_region(selected_region_id, con)

Arguments

selected_region_id

The ID of the selected region.

con

PqConnection to Postgresql database.

Value

A sf data frame containing information about ROE within the specified region.

Examples

con <- db_con()
#> Error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
#> 	Is the server running locally and accepting connections on that socket?
roe_data <- data_get_roe_in_region(selected_region_id = 11, con = con)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'conn' in selecting a method for function 'sqlInterpolate': object 'con' not found
DBI::dbDisconnect(con)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'conn' in selecting a method for function 'dbDisconnect': object 'con' not found