Skip to contents

Builds a fetch_envelope buffer around the input geometry, retrieves toponymic point features from the BDTOPO dataset, classifies them by thematic type (hydrographic, vegetation, or other), normalizes the result, and returns a standardized sf point layer.

Usage

get_toponyme(x, buffer = 1000, verbose = TRUE)

Arguments

x

An sf object defining the input area of interest.

buffer

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

verbose

logical If TRUE, display messages.

Value

An sf object containing toponymic point features with standardized attribute fields:

  • TYPE - Toponym class

    • HYD = Hydrographic toponym

    • VEG = Vegetation-related toponym

    • TYP = Other toponyms

  • NATURE - Original BDTOPO object nature

  • NAME - Official toponym name (when available)

  • SOURCE - Data source identifier (IGNF_BDTOPO_V3)

Details

The function creates a 1000 m fetch_envelope buffer around the input geometry x and retrieves toponymic point features from the BDTOPO toponymy layer. Retrieved features are classified into thematic types based on their object class, attribute names are standardized, and geometries are normalized before being returned as a single sf point layer.