Changes in version 0.8.7 (2024-11-03) 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. Changes in version 0.8.6 (2023-09-06) - Addressed CRAN package documentation issue. - Package-internal datasets can be loaded by getCountryCode() and getTimezone() without invoking library MazamaSpatialUtils. Changes in version 0.8.5 (2023-04-17) - Tweaks to satisfy CRAN submission checks. Changes in version 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 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). Changes in version 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 Changes in version 0.8.2 - Documentation fixes associated with change from sp to sf. Changes in version 0.8.1 (2022-11-09) - Tweaks to satisfy CRAN submission checks. Changes in version 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. Changes in version 0.7.6 (2021-09-15) - Removed links to slow-to-respond http://www.naturalearthdata.com/ to pass CRAN submission tests. - Updated out-of-date URLs. Changes in version 0.7.5 - Updated ebolamap.Rmd vignette to pass R CMD check. Changes in version 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. Changes in version 0.7.3 (2020-12-01) - URL corrections for CRAN submission. - Vignette wordsmithing. - Test updates. Changes in version 0.7.2 - URL corrections after testing with win-builder. Changes in version 0.7.1 - Reordered parameters in installSpatialData() so that dataset comes first. - installSpatialData() attempts to install simplified versions of datasets: "_05", "_02" and "_01". - Replacement of lon and lat in getHUC() and getHUCName(). - subsetHUC() now handles NA values in SFDF$allStateCodes. - Congressional districts dataset name now includes session number: USCensus116thCongress. Changes in version 0.7.0 Version 0.7 includes more datasets that have all been through identical processing and harmonization steps. In general, this release represents a clean-and-update revision that brings all aspects of the package up to modern standards. Improvements include: - Fewer package dependencies. - Minor updates to vignettes and articles. - Consistent replacement of lon and lat with longitudeandlatitude` in all functions. Changes in version 0.6.16 - Updated convertWikipediaTimezeonTable(). - Updated convertWorldTimezones() and package internal dataset SimpleTimezones. - Updated convertGADM() to support GADM version 3.6. - Updated convertEEZCountries() and SimpleCountriesEEZ dataset. - Updated SimpleCountries dataset Changes in version 0.6.15 - Added US_countyCodes dataset with stateCode, stateFIPS, countyName, countyFIPS. New functions for converting between US county names/FIPS: - US_countyNameToFIPS() - US_countyFIPSToName() Changes in version 0.6.14 - Fixed a bug in loadSpatialData() that was returning dataset names with ".rda". Changes in version 0.6.13 - Updated convertWorldEEZ.R. - Updated convertHMSSmoke.R. - Updated convertStateLegislativeDistricts.R. - Updated convertTMWorldBordersSimple.R. - Updated convertTMWorldBorders.R. - Updated convertSimpleCountries.R. - Updated convertGACC.R. - Updated convertNWSFireZones.R. Changes in version 0.6.12 - Updated convertMTBSBurnArea.R. - Updated convertNaturalEarthAdm1.R. Changes in version 0.6.11 - Removed non-working app/ directory and dependency on shiny. - Corrected Bosnia country code in convertWikipediaTimezoneTable.R. - Updated convertEPARegions.R. - Updated convertOSMTimeZones.R. - Updated convertTerrestrialEcoregions.R. - Updated convertWeatherZones.R. Changes in version 0.6.10 - Updated convertGACC.R to use 2020 data. - Removed outlying territories from US_stateCodes. - Updated convertUSCensusStates.R to use 2019 data. - Updated convertCARBAirBains.R to latest coding style. - Updated convertUSCensusCBSA.R to latest coding style. - Updated convertIndianLands.R to latest coding style. - Now using the cleangeo package to fix topology errors and geometry validity issues. New functions for converting among US state names/codes/FIPS: - US_stateCodeToName() - US_stateCodeToFIPS() - US_stateFIPSToCode() - US_stateFIPSToName() - US_stateNameToCode() - US_stateNameToFIPS() Changes in version 0.6.9 - Changed US_stateCodes dataset to include only stateName, stateCode and stateFIPS columns. It is now more complete with codes for all states and territories. - convertLayer() now properly passes encoding to rgdal::readOGR(). - Updated convertUSCensusCounties() to use 2019 data. Changes in version 0.6.8 - New "Developer Style Guide" article. Changes in version 0.6.7 - New "Basic GIS in R" article. Changes in version 0.6.6 - loadSpatialData() now recognizes both .RData and .rda files. - Improved documentation - New convert functions: - convertEPARegions() - convertMTBSBurnArea() - convertUSCensusUrbanAreas() - convertUSFSRangerDistricts() Changes in version 0.6.5 - New convertHILFDFederalLands() function. - Added tidyr package to Imports. - Updated docker image. Changes in version 0.6.4 (2019-09-28) - Modified test infrastructure to address CRAN issues. Changes in version 0.6.3 - Added useBuffering argument to getUSCounties(). - Addressed bug in loadSpatialData() which errored out when a directory existed with the same name as the dataset trying to be loaded. - Updated summarizeByPolygon() to modern dplyr syntax. - Added %>% operator. - Code style refactoring. Changes in version 0.6.1 (2019-01-30) - made simplify() function example donotrun so as to avoid a CRAN testing failure on fedora only -- Ugh. Changes in version 0.6.0 (2019-01-27) - changes associated with minor version bump Changes in version 0.5.10 - refactored shiny app from localShiny and added it to package in inst - added runExample() to run shiny examples - updated README.md Changes in version 0.5.9 - New convert function for public health districts - New convert function for GACCs - more testing Changes in version 0.5.8 - New convert functions for weather zones - Argument consistency with getHUC() - added dissolve() wrapper for rmapshaper::ms_dissolve() Changes in version 0.5.7 - documentation with pkgdown - various cleanup: spell check, reformatted NEWS.md, etc. - added simplify() wrapper for rmapshaper::ms_simplify() Changes in version 0.5.6 - added CONUS and US_52 vectors of US state codes as package data - added US_stateCodes dataframe as package data Changes in version 0.5.5 - added convertStateLegislativeDistricts() function to download and convert US state level legislative districts on demand - now using countrycode package for all code/name conversions - ebolamap.Rmd converted to vignette, moved to vignettes/ and localNotebooks/ deleted - usages of cat() replaced with message(), warning(), or error() Changes in version 0.5.4 (2018-09-18) - corrected GADM URL in documentation for convertGADM() Changes in version 0.5.3 - added convertUSCensusCBSA() to convert Metropolitan-/Micropolitan Statistical Areas - removed verbose argument from getStateCode() function signature Changes in version 0.5.2 (2017-12-07) - fixed use of allStateCodes in WBD~ datasets - converted USIndianLands@data data from factor to character - updated docker/Dockerfile - added ebolaMap vignette Changes in version 0.5.1 (2017-08-03) - tweaks to satisfy CRAN Changes in version 0.5.0 - package now Depends on sp package so that sp plotting is used by default - package includes higher resolution SimpleCountries and SimpleTimezones datasets - internal standard now requires unique polygonID column for every dataset - organizePolygons() now uniformly uses polygonID for rownames and polygons@ID so you can say: plot(SimpleCountries['IT',]) - fixed bug in processing of USCensusCounties dataset - changed codeToCode() to two functions: iso2ToIso3() and iso3ToIso2() - package now includes SimpleCountriesEEZ dataset which is used as the default dataset for getCountry(). SimpleCountriesEEZ includes a 200-mile offshore buffer for more efficient and accurate spatial searches - new datasets include: TerrestrialEcoregions, USCensus115thCongress, USCensusStates, USCensusIndianLands Changes in version 0.4.9 (2017-03-17) - new .tar.gz file available containing spatial datasets - new installSpatialData() installs all required datasets - loadSpatialData() no loads one or more datasets based on a pattern - removed initializeSpatialData() - convertGADM() updated to GADM version 2.8 (handles .rds files) - updated localVignettes/ebolaMap.Rmd - new docker/ directory for building docker images to run MazamaSpatialUtils - new app/ directory demonstrates dockerized web-service based on MazamaSpatialUtils Changes in version 0.4.8 (2016-11-18) - locations that do not intersect any polygon now return NA rather than generating warnings - various minor bug fixes. Changes in version 0.4.5 - convertHMSSmoke() now handles shapefiles with new Density information Changes in version 0.4.4 - Fixed bug/typo in findTimezones demo. - Fixed bugs/typos in convertWBDHUC() and convertHMSSmoke(). Changes in version 0.4.3 (2016-02-17) - New convertHMSSmoke() function for smoke data from the NOAA Hazard Mapping Service. - Shapefiles with no projection information are assigned "+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs". - Added dependency on lubridate package. Changes in version 0.4.2 - Added encoding argument to converLayer(). - Modified convertUSCensusCounties() to use encoding='latin1'. Changes in version 0.4.1 - Added useBuffering argument to getState(), getCountry() and getTimezone(). Changes in version 0.3.2 (2015-07-24) - getSpatialData() no longer fails on invalid/missing locations, now returns dataframe rows with all NA. Changes in version 0.3.1 (2015-07-11) - Updated included datasets to use "+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs". - Addition of buffered search so that locations can find nearby polygons. - Addition of convertWorldEEZ() function. Changes in version 0.2.4 (2015-05-21) - Updated default projection from "+proj=longlat" to "+proj=longlat +ellps=GRS80 +datum=NAD83 +no_defs" to support libproj >= 4.9.1 Changes in version 0.2.3 (2015-03-26) - Removed unneeded test that failed with sp version 1.1-0. Changes in version 0.2.1 (2015-02-23) - User specification of SpatialDataDir is now required. - Minor documentation improvements. - Convert functions for GADM administrative boundaries and and USGS watershed datasets. - Addition of code-name, name-code and code-code conversion utilities. - Addition of organizePolygons() function. Changes in version 0.1