R/read_rural_lots_bg.R

Defines functions read_rural_lots_bg

Documented in read_rural_lots_bg

#' Rural Lots
#'
#' Function returns the rural properties belonging to the municipality of Bage
#'
#' @export
#' @family general area functions
#' @examples \dontrun{
#'
#' library(geobage)
#'
#'   c <- read_rural_lots_bg()
#'
#' }
read_rural_lots_bg <- function(){
  objeto <- geojsonio::geojson_read("https://raw.githubusercontent.com/GeoInformacao/filesGeoJSONgeobage/main/LOTES_RURAIS.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.