Skip to content

Releases: MazamaScience/MazamaSpatialUtils

0.8.7

01 Nov 21:34
Compare
Choose a tag to compare

MazamaSpatialUtils 0.8.7

Added a new set of country code conversion functions whose names match those
for state and county conversions:

  • countryCodeToName()
  • countryCodeToFIPS()
  • countryFIPSToName()
  • countryCodeToCode()
  • countryNameToCode()
  • countryNameToFIPS()

These are now preferred over the older codeToCountry() and countryToCode()
functions which, while deprecated, are still supported for backwards compatibility.

0.8.6

06 Sep 17:47
Compare
Choose a tag to compare

MazamaSpatialUtils 0.8.6

  • Addressed CRAN package documentation issue.
  • Package-internal datasets can be loaded by getCountryCode()
    and getTimezone() without invoking library(MazamaSpatialUtils).

0.8.5

17 Apr 19:38
Compare
Choose a tag to compare

MazamaSpatialUtils 0.8.5

  • Tweaks to satisfy CRAN submission checks.

0.8.4

14 Apr 18:45
Compare
Choose a tag to compare

MazamaSpatialUtils 0.8.4

  • Added dependency on sf.

This addresses the following error seen when using internal data in a dplyr context:

> IS <- SimpleCountriesEEZ %>% dplyr::filter(countryCode == "IS")
Error in `vec_size()`:
! `x` must be a vector, not a <sfc_MULTIPOLYGON/sfc> object.

This error is explained here:
https://www.mm218.dev/posts/2022-12-01-sf-in-packages/ and the simplest
solution for this spatially-oriented package is to simply move sf from an
import to a dependency (by moving it to the "Depends:" section of DESCRIPTION).

0.8.3

28 Mar 19:28
Compare
Choose a tag to compare

MazamaSpatialUtils 0.8.3

  • Added handling of "Sparse geometry binary predicate list of length 1" error in
    getSpatialData() by simply choosing the first polygon returned.
  • Added convertWBDHUC() and pre-generated spatial data files: WBDHU2,
    WBDHU4, WBDHU6 WBDHU8 and WBDHU10.
  • Added getHUC() and getHUCName().

Added the following datasets to the archive at:
http://data.mazamascience.com/MazamaSpatialUtils/Spatial_0.8/

  • WBDHU2 (and simplified versions)
  • WBDHU4 (and simplified versions)
  • WBDHU6 (and simplified versions)
  • WBDHU8
  • WBDHU10

0.8.2

22 Mar 18:02
Compare
Choose a tag to compare

MazamaSpatialUtils 0.8.2

  • Documentation fixes associated with change from sp to sf.

0.8.1

07 Feb 15:52
Compare
Choose a tag to compare

MazamaSpatialUtils 0.8.1

  • Tweaks to satisfy CRAN submission checks.

0.8.0

08 Nov 17:41
Compare
Choose a tag to compare

MazamaSpatialUtils 0.8.0

Version 0.8.x is a complete refactoring of MazamaSpatialUtils to upgrade
from dependence on the sp package to use of the sf package. As much as
possible, the suite of functions and arguments will remain the same.

The following changes have been made:

  • The dataset parameter has been renamed to datasetName in all functions
    where a name is expected rather than a sf dataframe object. This should have no
    effect on existing code which should "fuzzy match" dataset => datasetName.

0.7.6-zenodo

12 Oct 21:14
Compare
Choose a tag to compare

Re-release of 0.7.6 to have it picked up by Zenodo.

0.7.6

15 Sep 15:52
Compare
Choose a tag to compare

MazamaSpatialUtils 0.7.6

MazamaSpatialUtils 0.7.5

  • Updated ebolamap.Rmd vignette to pass R CMD check.

MazamaSpatialUtils 0.7.4

  • Minor documentation improvements.
  • Removed unused dependency on tidyr.
  • Replaced non-ASCII characters to satisfy CRAN checks.
  • Consistent parameter validation in all get~() functions.