NEWS.md
Minor changes
read_municipality()
has a new parameter keep_areas_operacionais
, which allows users to control wether the data should keep the polygons of Lagoas dos Patos and Lagoa Mirim in the State of Rio Grande do Sul (considered as areas estaduais operacionais). The default FALSE
drops these two polygons. Closes #176.cache
parameter that allows users to decide whehter to keep files in cache or to force downloading them again. At the moment, files are only cached during the R session, but this is a step towards a future version of {geobr} when files will be based on permanent caching.curl::multi_download()
to download files in parallelMajor changes
read_health_facilities()
now has a new parameter date
, which will allow users to access data for different dates of reference. The plan is to have at least one update of this data set per year. Closes #334.read_urban_area()
and read_metro_area()
now have a new parameter code_state
, which will allow users to filter selected states. Closes #338Bug fix
data.table::rbindlist()
to rind data was throwing errors when some observations were of class POLYGONS
and others were MULTIPOLYGONS
. This has now been replaced with dplyr::bind_rows()
at a very small performance penalty. Closes #346.New data
CRAN request
Minor changes
geobr::grid_state_correspondence_table()
New function
read_capitals()
to download either a spatial sf
object with the location of the municipal seats (sede dos municipios) of state capitals, or a data.frame
with the names of codes of state capitals. Closes #243
Minor changes
Bug fixes
sf
and data.table
that was messing with plot extent. Closes #284.plotly
and data.table
. Closes #279.cep_to_state()
function. Closes #317.lookup_muni()
and download_metadata()
functions are now more robust to internet connection failures.Major changes
Minor changes
check_connection()
functionMinor changes
read_statistical_grid()
Closed #289.Minor changes
Bug fixes
Minor changes
check_connection()
to fail gracefully. Return message, no error.New data sets/functions
geobr
stores downloaded in temporary cache in tempdir()
. Closes #225.read_comparable_areas
to read historically comparable municipalities, aka Areas minimas comparaveis (AMCs). Closes issue #17macro
parameter added to read_health_region()
function. Closes issue #219.is_online()
to check internet connection with Ipea server. Closes #229read_urban_concentrations
. Closes #232read_pop_arrangements
. Closes #231Minor changes
Roxygen: list(markdown = TRUE)
grid_state_correspondence_table
read_municipality
when reading a state abbreviation before 1991.Minor changes
New data sets/functions
read_schools
to read the schools data - closes issue #190 (added in 2020-10).census_tracts
2017 from the agricultural census - closes issue #171 (added in 2020-11).cep_to_state
to determine the state of a given CEP postal code (added in 2021-01).Minor changes
data.table
to use rbindlist
and improve package speed when downloading data for the whole country. Closes issue #199.New data sets/functions
read_health_region
to read the health regions - closes issue #149 (added in 2020-07).intermediate
, immediate
micro
and meso
regions, states
and municipalities
.Minor changes
simplified
zone
in the read_census_tract
functionread_municipality()
function now also takes additional inputs for data sets before 1992. Closes issue #163 (added in 2020-06)st_geometry_type()
of data sets to MULTIPOLYGON
, when appropriate. Closes issues #41 #151 #135 #172geobr::grid_state_correspondence_table
. Closes #187tp
fully deprecated and replaced with simplified
. No more warning messageNew data sets/functions
read_neighborhood
to read neighborhood limits of Brazilian municipalities - closes issue #104 (added in 2020-03).Major changes
showProgress
to display progress bar. Defaults to TRUE
tp
was deprecated and replaced by argument simplified
that needs to be either TRUE
or FALSE
. This should only affect user who have previously used tp=TRUE
, who now should write simplified=FALSE
Minor changes
crs
objects. Following sf
package update v0.9-0
New data sets/functions
read_metro_area
to read official metropolitan areas - closes issue #2 (added in 2019-12).read_municipal_seat
to read the spatial coordinates of municipal seats- closes issue #86 (added in 2019-12).lookup_muni
to look up municipality codes by their name, or the other way around. closes issue #58 (added in 2019-12)list_geobr
to list all the datasets available in geobr - Closes issue #57.Major changes
geobr
to read geopackage
files, instead of .rds
. A structural change that will make it easier to maintain both versions of geobr in R and Python (2020-02)tp
as in data ‘type’. This argument defaults to read data sets with ‘simplified’ borders, what makes the package much more efficient for downloading and plotting the data. Closes issue #76 (2020-02)read_statistical_grid
and read_census_tract
. These two functions do take a really long time to load the data for the whole country and it might crash R due to memory limits, so the user must be more ‘aware’ about her choice (2020-02)Minor changes
New data sets/functions
read_indigenous_land
to read official data of indigenous lands of all ethnicities according to stage of demarcation - closes issue #47 (2019-09-04).read_disaster_risk_area
to read official data of areas exposed to risks of geodynamic and hydro-meteorological disasters capable of triggering landslides and floods - closes issue #14 (added in 2019-09-24).read_biomes
to read official data of polygons of all of all biomes present in Brazilian territory - closes issue #45 (added in 2019-09-24).read_amazon
to read official data of Brazil’s Legal Amazon - closes issue #38 (added in 2019-10-07).read_conservation_units
to read official data of Environmental Conservation Units - closes issue #59 (added in 2019-10-08).read_urban_area
to read official data of urban footprint of Brazilian cities - closes issue #52 (added in 2019-10-17).read_intermediate_region
(2017) (added in 2019-11-28)read_immediate_region
(2017) (added in 2019-11-28)download_metadata
simply the download of df with data set addresses.Minor changes
read_region
function to improve speed and remove dplyr
dependency (added in 2019-10-22).*_code="all"
. This fixes the output of vignette and closes issue #42 (2019-08-05)