Skip to content

Releases: bcgov/bcmaps

bcmaps 2.2.0

24 Jan 17:26
73f62dd
Compare
Choose a tag to compare
  • Added function utm_convert() to convert tabular data with X and Y coordinates
    in (possibly multiple) UTM zones to a single CRS.

bcmaps 2.1.0

17 Oct 22:32
Compare
Choose a tag to compare
  • Added function cded_terra()
  • Deprecated function cded_raster() - this will be removed in a future version.

bcmaps 2.0.0

23 Aug 21:25
Compare
Choose a tag to compare

Removal of sp and raster support

We've removed support for the sp and raster packages,
especially those parts that require
the use of the rgdal and rgeos packages, which will be retired in October 2023. See the r-spatial blog for details of this evolution.

  • Removed the class argument in all of the data download functions: get_layer() and all of the wrapper shortcuts such as bc_bound(), census_tract(), etc. These functions will now only return sf objects.
  • The Spatial method of transform_bc_albers() is removed.
  • fix_geo_problems() is removed. For sf objects simply use sf::st_make_valid()
  • self_union() is removed. Use raster::union() for SpatialPolygonsDataFrames, or sf::st_union() with sf objects instead.
  • get_poly_attribute() is removed.
  • raster_by_poly() is retained for now as it does not rely on rgdal or rgeos,
    just sp and raster, which are still being maintained.

Documentation improvements

  • Added a pkgdown site for bcmaps https://bcgov.github.io/bcmaps/ (#63)
  • Moved the detailed user documentation from the README to a Get Started with bcmaps article/vignette (#42)
  • Better documentation for bc_bound_hres() (#124)

bcmaps 1.2.0

11 Apr 20:42
Compare
Choose a tag to compare

Deprecation of sp and raster support

We've started the process of removing support for the sp and raster packages, especially those parts of that require the use of the rgdal and rgeos packages, which will be retired in October 2023. See the r-spatial blog for details of this evolution. We will fully remove support for Spatial classes (from package sp) in the next release in Summer 2023.

  • Added deprecation warnings for the class argument in all of the data download functions: get_layer() and all of the wrapper shortcuts such as bc_bound(), census_tract(), etc. This argument will be removed in the next version of bcmaps as these functions will only return sf objects.
  • The Spatial method of transform_bc_albers() is deprecated.
  • fix_geo_problems() is deprecated and will be removed completely in Summer 2023.
    For sf objects simply use sf::st_make_valid()
  • self_union() is deprecated and will be removed in Summer 2023. Use raster::union()
    for SpatialPolygonsDataFrames, or sf::st_union() with sf objects instead.
  • get_poly_attribute() is deprecated because it had a very niche application for calculating attributes on a SpatialPolygonsDataFrame, which we are removing support for. It will be removed completely in Summer 2023.

bcmaps 1.1.0

07 Jan 01:02
Compare
Choose a tag to compare
  • bec and tsa layers are now downloaded directly from the BC Data Catalogue. This ensures that these are up-to-date and means that we do not rely on the manual updating of these layers at https://github.com/bcgov/bcmapsdata. (#62, #115)
  • Package startup message about no longer needing the bcmapsdata package has been removed.

bcmaps 1.0.3

26 Aug 20:25
Compare
Choose a tag to compare
  • New behaviour of shortcut functions ensures that all spatial objects (sf or Spatial) returned
    are topologically valid and in the standard CRS of "EPSG:3005" (BC Albers). #96
  • More robust behaviour of getting and checking cache of cded files.

v1.0.1

21 Jan 23:44
Compare
Choose a tag to compare

bcmaps 1.0.1

  • When R version is >= 4.0, bcmaps will use tools::R_user_dir("bcmaps", "cache") to determine the cache directory, while when R version is < 4.0, it
    will use rappdirs::user_cache_dir("bcmaps"). This is to align with CRAN's
    storage policy using the tools approach while maintaining backwards
    compatibility with older R versions. Unfortunately this will require users who
    updated to version 1.0 to re-download layers because we are caching layers in a
    different location on your file system from that version. Users wishing to clear
    the old cache location could run bcmaps::delete_cache() before updating to bcmaps 1.0.1.
    (#83)
  • cded_raster and cded_stars directly accepts a bounding box generated by sf::st_bbox as an aoi. (#87)
  • Fixed a bug where bundled datasets (e.g., mapsheets_50K(), mapsheets_250K()) would not work if sf was linked to older GDAL/PROJ libraries due to different formats of coordinate reference systems. (#85)
  • Added new census boundary layers: census_dissemination_area(), census_metropolitan_area(), census_tract() (#82).
  • Add missing layers to available_layers

bcmaps 1.0.0

11 Jan 22:18
Compare
Choose a tag to compare
  • Drop dependency on {bcmapsdata} in favour of directly retrieving layers (where present)
    from the B.C. Data Catalogue (via {bcdata}) and storing in a local cache. Some additional
    layers are retrieved from Statistics Canada.
  • Some layers may not be identical to what was previously in {bcmaps}. For example bc_neighbours previously used data from Natural Earth. The availability of a Hi-Res B.C. boundaries over WFS from the B.C. Data Catalogue means that the layer can now be created directly by {bcmaps}.
  • Added forward sortation area (fsa), health boundaries (health_*) and some census boundaries (census_*).
  • Added ability to retrieve and cache CDED (BC Digital Elevation Model data, returning either stars or raster objects (#73)
  • Use of parallelism in functions that allow it (raster_by_poly() &
    summarize_raster_list()) is now reliant on users setting up their
    own future::plan() to specify strategy and number of workers, rather than setting
    defaults (this is the best practice according to the author of the future package @HenrikBengtsson, #69)
  • Fixed bug where errors would occur if a user's system GEOS was a development version (e.g., 3.9.0dev; #71)

bcmaps v0.18.0

15 Feb 18:07
Compare
Choose a tag to compare

CRAN release v0.18.0

  • Added bc_neighbours() function to call layers containing adjacent jurisdictions.
  • Ensured the geometry column in all layers is consistently named "geometry" (Thanks @boshek)
  • Moving sf package to Depends to take advantage of sf print methods.
  • Added bc_bbox() to get a bounding box for British Columbia (#40).
  • All references to external data package now point to bcmapsdata because of this R bug (https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17520)

bcmaps v0.17.1

14 Mar 23:55
34c2ebc
Compare
Choose a tag to compare
  • Fixed an issue where self_union() would fail due to a change in the raster package (30cef34)