Releases: MazamaScience/MazamaSpatialUtils
0.8.7
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
MazamaSpatialUtils 0.8.6
- Addressed CRAN package documentation issue.
- Package-internal datasets can be loaded by
getCountryCode()
andgetTimezone()
without invokinglibrary(MazamaSpatialUtils)
.
0.8.5
MazamaSpatialUtils 0.8.5
- Tweaks to satisfy CRAN submission checks.
0.8.4
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
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
andWBDHU10
. - Added
getHUC()
andgetHUCName()
.
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
MazamaSpatialUtils 0.8.2
- Documentation fixes associated with change from sp to sf.
0.8.1
MazamaSpatialUtils 0.8.1
- Tweaks to satisfy CRAN submission checks.
0.8.0
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 todatasetName
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
Re-release of 0.7.6 to have it picked up by Zenodo.
0.7.6
MazamaSpatialUtils 0.7.6
- Removed links to slow-to-respond http://www.naturalearthdata.com/ to pass CRAN
submission tests. - Updated out-of-date URLs.
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.