Skip to content

bcmaps 1.2.0

Choose a tag to compare

@ateucher ateucher released this 11 Apr 20:42

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.