Skip to contents

Builds a convex buffer around the input geometry, retrieves hydrographic line features from BDTOPO, normalizes them, and returns a combined sf linestring layer.

Usage

get_hydro_line(x, buffer = 1000)

Arguments

x

An sf object used as the input area.

buffer

numeric; Buffer around x (in meters) used to enlarge

Value

An sf object containing hydrographic line features with four fields:

  • TYPE - hydrographic class

    • RUP = Permanent hydrographic line

    • RUI = Intermittent hydrographic line

  • NATURE - Original BDTOPO nature field

  • NAME - Official hydrographic name (when available)

  • OFFSET - Offset information

Details

The function retrieves BDTOPO hydrographic line segments (troncon_hydrographique) within a 1000 m convex buffer around x, assigns the hydrographic types, normalizes the geometries, and returns them as a single combined layer.