R/read_pedology_bg.R

Defines functions read_pedology_bg

Documented in read_pedology_bg

#' Pedology
#'
#' Function returns the pedology of the municipality of Bage
#'
#' @export
#' @family general area functions
#' @examples \dontrun{
#'
#' library(geobage)
#'
#'   c <- read_pedology_bg()
#'
#' }
read_pedology_bg <- function(){
  objeto <- geojsonio::geojson_read("https://raw.githubusercontent.com/GeoInformacao/filesGeoJSONgeobage/main/PEDOLOGIA.geojson",what = "sp")
  # Criando um objeto Simple Feature (sf) com coordenadas geometricas
  objeto <- sf::st_as_sf(objeto, coords(list(c('long', 'lat')), group_by(objeto$id)))
  objeto
}
GeoInformacao/geobage documentation built on July 26, 2022, 2:34 p.m.