Recent Releases of geobr

geobr - v1.9.1

Minor changes

  • The 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.
  • Functions now include a 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.
  • Now using curl::multi_download() to download files in parallel
  • Removed dependency on the {httr} package
  • {geobr} now imports {fs} to use robust cross-platform file system operations
  • Simplified and streamlined internal functions

- R
Published by rafapereirabr over 1 year ago

geobr - v1.9.0

Major changes

  • Function 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.
  • Functions read_urban_area() and read_metro_area() now have a new parameter code_state, which will allow users to filter selected states. Closes #338

Bug fix - Using 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 - schools for 2023 - health facilities for 202303 - census tracts for 2020 and 2022

- R
Published by rafapereirabr about 2 years ago

geobr - v1.8.2

CRAN request - Fixed issue to make sure geobr uses suggested packages conditionally

Minor changes - Fixed non-ASCII characters in data geobr::grid_state_correspondence_table()

- R
Published by rafapereirabr over 2 years ago

geobr - v1.8.1

CRAN request - geobr now uses suggested packages conditionally

- R
Published by rafapereirabr over 2 years ago

geobr - v1.8.0

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 - Update intro vignette to show how to use geobr together with the new censobr sister package.

Bug fixes

  • fixed bug from conflict between sf and data.table that was messing with plot extent. Closes #284.
  • fixed bug from conflicts between plotly and data.table. Closes #279.
  • fixed bug in cep_to_state() function. Closes #317.
  • fixed bug in progress bar. Closes #154.
  • The lookup_muni() and download_metadata() functions are now more robust to internet connection failures.

- R
Published by rafapereirabr over 2 years ago

geobr - v1.7.0

Data release

- R
Published by rafapereirabr almost 4 years ago

geobr - v1.6.5

geobr v1.6.5

Minor changes

  • Remove packages cruland readr from geobr dependencies.
  • geobr now fails gracefully when server connection times out. Closed #259.

Bug fixes

  • Fixed check_connection() that was failing on Linux. Closed #269.

- R
Published by rafapereirabr over 4 years ago

geobr - v1.6.4

bug fixes

  • Fixed bug crashing on Solaris.

- R
Published by rafapereirabr over 4 years ago

geobr - v1.6.3

geobr v1.6.3

bug fix

- R
Published by rafapereirabr almost 5 years ago

geobr - v1.6.2

geobr v1.6.2

Minor changes

  • Added package crul do geobr dependencies.

- R
Published by rafapereirabr almost 5 years ago

geobr - v1.6.1

geobr v1.6.1

Minor changes

  • Improved check_connection() to fail gracefully. Return message, no error.

- R
Published by rafapereirabr about 5 years ago

geobr - v1.6.0

geobr v1.6.0

New data sets/functions

  • From v1.6 onwards, geobr stores downloaded in temporary cache in tempdir(). Closes #225.
  • New function read_comparable_areas to read historically comparable municipalities, aka Areas minimas comparaveis (AMCs). Closes issue #17
  • New data set of macro regions og health, which can be accessed using the new macro parameter added to read_health_region() function. Closes issue #219.
  • New internal support function is_online()to check internet connection with Ipea server. Closes #229
  • New data/function read_urban_concentrations. Closes #232
  • New data/function read_pop_arrangements. Closes #231
  • updated data sets for 2020:
    • Country
    • Regions
    • States
    • Micro regions
    • Meso regions
    • Immediate regions
    • Intermediate regions
    • Municipalities
    • Census tracts
  • Updated data of indigenous land March 2021

Minor changes

  • Improved package test coverage to 99.16%.
  • Improved documentation considering Roxygen: list(markdown = TRUE)
  • fix column names of grid_state_correspondence_table
  • Improve warning message regarding connection to geobr server at Ipea
  • Fix read_municipality when reading a state abbreviation before 1991.

- R
Published by rafapereirabr about 5 years ago

geobr - v1.5-1

geobr v1.5-1

Minor changes

  • Fixed unnecessary warning about internet connection. Closes #200.

- R
Published by rafapereirabr over 5 years ago

geobr - v1.5

geobr v1.5

New data sets/functions

  • new function read_schools to read the schools data - closes issue #190 (added in 2020-10).
  • data of census_tracts 2017 from the agricultural census - closes issue #171 (added in 2020-11).
  • new function cep_to_state to determine the state of a given CEP postal code (added in 2021-01).

Minor changes

  • geobr now automatically detects if there is an internet connection problem and throws an error. Closes issue #178
  • imports data.table to use rbindlist and improve package speed when downloading data for the whole country. Closes issue #199.
  • new intro tutorial vignette for Python users

- R
Published by rafapereirabr over 5 years ago

geobr - v1.4

geobr v1.4 2020-10-04

New data sets/functions

  • data set read_health_region to read the health regions - closes issue #149 (added in 2020-07).
  • updated 2019 data sets of intermediate, immediate micro and meso regions, states and municipalities.

Minor changes

  • improved documentation of argument simplified
  • included documentation of argument zone in the read_census_tract function
  • read_municipality() function now also takes additional inputs for data sets before 1992. Closes issue #163 (added in 2020-06)
  • harmonized the st_geometry_type() of data sets to MULTIPOLYGON, when appropriate. Closes issues #41 #151 #135 #172
  • fix typo in geobr::grid_state_correspondence_table. Closes #187
  • argument tp fully deprecated and replaced with simplified. No more warning message
  • sample data with life expectancy of Brazilian states in 2017. To be used in vignette

- R
Published by rafapereirabr over 5 years ago

geobr - v1.3

geobr v1.3 (2020-03-30)

New data sets/functions

  • data set read_neighborhood to read neighborhood limits of Brazilian municipalities - closes issue #104 (added in 2020-03).

Major changes

  • New argument showProgress to display progress bar. Defaults to TRUE
  • Argument 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

  • reorganization of internal support functions to reduce code redundancy
  • substantial improvment in test coverage of functions
  • substantial improvment in test coverage of functions
  • modified package tests using new format of crs objects. Following sf package update v0.9-0

- R
Published by rafapereirabr about 6 years ago

geobr - v1.2

  • Launch of geobr v1.2 on CRAN with the following data sets:

New data sets/functions

  • data set read_metro_area to read official metropolitan areas - closes issue #2 (added in 2019-12).
  • data set read_municipal_seat to read the spatial coordinates of municipal seats- closes issue #86 (added in 2019-12).
  • function lookup_muni to look up municipality codes by their name, or the other way around. closes issue #58 (added in 2019-12)
  • function list_geobr to list all the datasets available in geobr - Closes issue #57.

Major changes

  • MAJOR change of 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)
  • All functions now have an additional argument 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)
  • Pretty much all functions now download the data for the entire country as a default. Closes issue #77. The only exceptions are 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 utils.R script containing support functions to reduce code redundancy (2020-02)

- R
Published by rafapereirabr over 6 years ago

geobr - v1.1

Launch of geobr v1.1 on CRAN, including the following functions/datasets

  • closes issue #42 (2019-08-05)

    • Shows a single download progress bar when *_code="all".
    • This fixes the output of vignette
  • New data sets/functions

    • New data set read_indigenous_land to read official data of indigenous lands of all ethnicities according to stage of demarcation - closes issue #47 (2019-09-04).
    • New data set 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).
    • New data set 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).
    • New function download_metadata simply the download of df with data set addresses.
    • New data set read_amazon to read official data of Brazil's Legal Amazon - closes issue #38 (added in 2019-10-07).
    • New data set read_conservation_units to read official data of Environmental Conservation Units - closes issue #59 (added in 2019-10-08).
    • New data set read_urban_area to read official data of urban footprint of Brazilian cities - closes issue #52 (added in 2019-10-17).
    • Changes to read_region function to improve speed and remove dplyrdependency (added in 2019-10-22).
    • New data set of biomes (2019) available at scale 1:250.000. (added in 2019-10-31) - closes issue #72
    • New data set of Intermediate Regions (2017) (added in 2019-11-28)
    • New data set of Immediate Regions (2017) (added in 2019-11-28)

- R
Published by rafapereirabr over 6 years ago

geobr - v1.0

Launch of geobr v1.0 on CRAN, including the following functions/datasets

  • read_country
  • read_region
  • read_state
  • read_meso_region
  • read_micro_region
  • read_municipality
  • read_weighting_area
  • read_census_tract
  • read_statistical_grid
  • read_health_facilities

- R
Published by rafapereirabr almost 7 years ago

geobr - v0.03

  • New data weighting areas (áreas de ponderação) of Brazilian 2010 Census ** New function readweightingarea()

- R
Published by rafapereirabr almost 7 years ago

geobr - v0.02

  • New data: historical shapes of states and municipaltieies from 1872 to 1991
  • New data: geolocated data of health facilities

- R
Published by rafapereirabr almost 7 years ago