Releases: ateucher/rmapshaper
Releases · ateucher/rmapshaper
rmapshaper 0.6.0
- Updated bundled mapshaper version to
v0.6.113(#179). - Bumped minimum
geojsonsfversion to 2.0.5 to handle logical properties correctly (#177). v8_version()now works correctly in startup checks (#173, thanks @elipousson).- Added a more proactive startup message regarding old v8 engines, as the new
bundled mapshaper library will not work with libv8 < 8.1.307.30 (#140). - Added pkgdown site at https://andyteucher.ca/rmapshaper/
- Setting
force_FC = TRUEno longer adds armapshaperidid column.force_FC
is also better respected across functions and methods; previously it was
somewhat inconsistent (#151). - Added new argument
gj2008to all functions, which ifTRUEoutputs geojson following the old
(2008) specification. Polygon rings are CW and holes are CCW, which is the
opposite of the default RFC 7946-compatible output. This is required by D3, and
packages that depend on it, like plotly (#167, #168).
rmapshaper 0.5.0
This is a fairly major release with much of the internal plumbing changed. I have tried to keep user-facing changes to a minimum, but please report any issues to https://github.com/ateucher/rmapshaper/issues.
- Switched to using the
geojsonsfpackage instead ofgeojsoniofor object conversion (#118). - Updated the bundled mapshaper version to
v0.6.25(#130). - Dropped support for
geojson_listobjects. This was a rarely-used class from thegeojsoniopackage (#118). - Arguments
force_FC,sys, andsys_memare now passed toapply_mapshaper_commandsvia...rather than explicitly, so they are now documented in the...section of each function. This may break some existing code if you were passing values to these arguments by position rather than by name, especially usingforce_FCinms_simplifyas it was not at the end of the argument list. It may also change the class of the return value for some input classes and functions (such asms_linesandms_innerlines) asforce_FCwill inherit the defaultTRUEfor all functions. - Added
quietargument to silence mapshaper console messages when usingsys = TRUE. This can be controlled globally withoptions("mapshaper.sys_quiet" = TRUE)(#125). - Added ability to globally set the system memory when using the system mapshaper via
options("mapshaper.sys_mem"=X), whereXis the amount of memory in GB.
rmapshaper 0.4.6
- Fixed a long-standing issue where
unitscolumns insfobjects would cause failures; all numeric columns of class"units"are now converted to numeric before running through mapshaper commands. (#116, thanks @Robinlovelace) - Added a default value for
force_FCinapply_mapshaper_commands(). The default value isTRUE(#120, thanks @dblodgett-usgs) - Documentation fix in
check_sys_mapshaper()- fixed description of return value (#117, thanks @dblodgett-usgs). - Included an example of setting memory allocation when using the system mapshaper in README (#114, thanks @baldeagle).
rmapshaper 0.4.5
- Fixed a bug where functions would fail when there was a space in user's
tmpdir()
path andsys = TRUE(#107) - Updated bundled mapshaper library to v 0.4.163, which fixed a bug in
ms_erase(#110, #104, #112) - When
sys = TRUE, now usesmapshaper-xlin the system call, allowing
larger memory use. Default 8GB can be specified in new argumentsys_mem(#94, #112) - Internally switched to using
system2()oversystem()for flexibility
CRAN version 0.4.4
rmapshaper 0.4.4
- Small fixes for compatability with sf >= 0.9
CRAN version 0.4.3
rmapshaper 0.4.3
- Add checks, a package startup message, and helpful errors for the case when
a user has an old version oflibv8installed, as they do not support many
aspects of modern JavaScript (ES6). This appears to only impactms_erase()
andms_clip(). - Using
apply_mapshaper_commands()no longer deletes a file when used on a local file (#99, #100)
CRAN version 0.4.2
CRAN version 0.4.1
rmapshaper 0.4.1
- Fixed a bug when using
sys = TRUEwould fail on Windows in some circumstances (#77) - Fixed an issue where running
rmapshaperfunctions onsfcobjects failed with
sf v0.7
CRAN version 0.4.0
New features
- Added
sysargument to allow the use of the systemmapshaperif it's installed (#61)
Improvements and bug fixes
- Upgraded to
mapshaperv0.4.64 (#60) sf::st_read()is now used throughout for reading from disk and from geojson
strings, which allows for greater consistency and better performance.- Better handling of different column classes (#68, thanks @mdsumner)
- Avoid stackoverflow caused by adding special geojson classes (#71,
ropensci/geojsonio#128) - The name of the sf column is now properly retained (#70)
- Fixed issue where encoding/special characters were not preserved (#67)
CRAN version 0.3.0
- Methods for sf and sfc classes have been added (#46)
rmapshaperidcolumn is only retained if it is the only column, otherwise it's dropped.ms_innerlinesreturns only the geometry forsfandSpatial*DataFrameclasses. (#57)ms_dissolvegains aweightargument for generating weighted centroids of dissolved points. (#39)