MyNixOS website logo
Description

R Interface to Get French Heritage Data.

Get spatial vector data from the Atlas du Patrimoine (<http://atlas.patrimoines.culture.fr/atlas/trunk/>), the official national platform of the French Ministry of Culture, and facilitate its use within R geospatial workflows. The package provides functions to list available heritage datasets, query and retrieve heritage data using spatial queries based on user-provided sf objects, perform spatial filtering operations, and return results as sf objects suitable for spatial analysis, mapping, and integration into heritage management and landscape studies.

frheritage

CRAN status Lifecycle: experimental R-CMD-check

Overview

The Atlas du Patrimoine is the official national platform of the French Ministry of Culture that centralizes cultural heritage information. It provides access to a wide range of spatial and descriptive datasets, documenting France’s architectural, archaeological, movable, and intangible heritage.

The Atlas gathers and harmonizes data from several major databases such as:

  • Merimee – architectural and monumental heritage (churches, castles, etc.)

  • Palissy – movable heritage (objects, furniture, sculptures, etc.)

  • Patrimoine Mondial – UNESCO World Heritage sites in France

  • Patrimoine Archeologique – archaeological sites and surveys

  • Musees de France, Joconde, and other cultural inventories

All datasets are available through web services and open data exports provided by the Ministry of Culture. More details and an overview of available datasets can be found at: http://atlas.patrimoines.culture.fr/atlas/trunk/static/presentation.html

Citation and source

Data are provided by the French Ministry of Culture, through the Atlas du Patrimoine platform: http://atlas.patrimoines.culture.fr Please cite both the Atlas du Patrimoine and this package when using data in scientific or professional work.

API and data access disclaimer

The frheritage package is an independent, open-source client designed to facilitate access to public cultural data provided by the French Ministry of Culture. This package is not affiliated with, endorsed by, or officially supported by the Ministry.

All data remain the property of the French Ministry of Culture and are distributed under the Etalab Open License 2.0 (or any equivalent open-data license indicated by the data provider). Users are responsible for complying with the applicable terms of use, attribution requirements, and update policies of the Atlas du Patrimoine datasets.

For official documentation and metadata, please refer to: https://www.culture.gouv.fr/aides-demarches/protections-labels-et-appellations


The frheritage package

Purpose

The frheritage R package provides functions to explore, query, and retrieve datasets from the Atlas du Patrimoine within R. It aims to facilitate spatial analysis and data integration in geographic workflows, particularly for heritage management, cultural mapping, and landscape studies.

It allows to:

  • Retrieve and filter heritage datasets by code (internal nomenclature) and departement

  • Perform spatial queries directly from geometries (sf objects)

  • List all available heritage layers

  • Automatically validate user inputs and ensure compatibility with functions

Main features

The main functions are:

  • get_heritage_layernames() : Returns a data frame listing all available heritage datasets with their internal codes, and labels. Useful for identifying which datasets are accessible through the package.

  • get_heritage(): Downloads one or several datasets from the Atlas du Patrimoine from a given sf object. It can apply spatial filters (intersects, within, etc.) and automatically handle geometries.

  • get_heritage_ids(): Retrieves available heritage IDs from the Atlas du Patrimoine from a given sf object.

The get_heritage() function works with the internal database frheritage::all_ids which contains (normally) all the IDs for metropolitan France.

Getting start

# Just run
devtools::install_github("mucau/frheritage")

# Focus on a city
my_sf_polygon <- frcadastre::get_etalab(72191, data="communes")

# Retrieve the "immeuble classes ou inscrits" by using code "IMMH"
immh <- get_heritage(
  x = my_sf_polygon,
  data_code = "IMMH",
  buffer = 2500,
  spatial_filter = "within"
)

# To ask something else, try an other code !
# You don't know the codes ?
codes <- get_heritage_layernames()

# You don't trust my codes ?
# Okay, that's fine. You can check that I haven't forgotten any.
all_ids <- frheritage::all_ids # <- the internal database
ids <- get_heritage_ids(my_sf_polygon)

Problems and Issues


Have fun ! :)

Metadata

Version

0.1.0

License

Unknown

Platforms (78)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows