carbr: Access the Rural Environmental Registry of Brazil ('CAR')
Source:R/carbr-package.R
carbr-package.RdA tidy interface to the rural properties declared in the Rural Environmental Registry of Brazil ('Cadastro Ambiental Rural', 'CAR'), republished from the public service of the national system ('Sicar', https://www.car.gov.br/) as cloud-optimised 'GeoParquet'. Queries by state, municipality, status, size, bounding box, point or property code read only the parts of the remote files they need, so no full download of the registry is required, and precomputed summaries answer national counts in seconds. Results are returned as tibbles or 'sf' objects. Small files are cached on disk per catalogue version and checked against their published 'SHA-256'. Network failures are handled gracefully.
Opções do pacote
carbr.base_url: endereço (ou pasta local) da publicação, tambémCAR_URL. O padrão é o bucket público; serve para apontar para um espelho ou para uma cópia local. A árvore temcatalog.json,dictionary.json,municipalities/eproperties/state=<UF>/.carbr.install_httpfs:TRUEautoriza instalar a extensãohttpfsdo DuckDB sem perguntar; vercar_install_httpfs().carbr.quiet: silencia as mensagens informativas. PadrãoTRUEem sessões não interativas.carbr.cache_dir: local do cache. Padrãotools::R_user_dir("carbr", "cache")(ouCAR_CACHE_DIR).carbr.catalog_max_age: segundos em que o catálogo em cache vale sem consultar o servidor. Padrão 6 horas.carbr.max_tries,carbr.timeout: tentativas (padrão 3, com espera exponencial) e tempo limite de cada requisição em segundos (padrão 60).
Author
Maintainer: André Leite leite@castlab.org (ORCID)
Authors:
André Leite leite@castlab.org (ORCID)
Marcos Wasiliew marcos.wasiliew@gmail.com (ORCID)
Hugo Vasconcelos hugo.vasconcelos@ufpe.br (ORCID)
Carlos Amorim carlos.agaf@ufpe.br (ORCID)
Diogo Bezerra diogo.bezerra@ufpe.br (ORCID)
Júlia Nascimento Barreto juliabarreto@gd.seplag.pe.gov.br (ORCID)
Hortênsia Nunes Braz de Oliveira hortensia.nunes@condepefidem.pe.gov.br (ORCID)