This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
Releases: ropensci-archive/wellknown
Releases · ropensci-archive/wellknown
wellknown v0.7.4
wellknown v0.7.2
MINOR IMPROVEMENTS
- fixes to make this package compatible with an upcoming version of BH (v1.75.0) (#33)
wellknown v0.7.0
NEW FEATURES
- Dropped import package V8 used in
wkt_wkb()
andwkb_wkt()
functions; now using packagewk
for those functions. Javascript no longer used in the package; should make installation of this package easier on some platforms that had trouble installing V8 (#24) (#31) - Gains new functions for working with WKT:
bounding_wkt
,wkt_bounding
,sf_convert
,validate_wkt
,wkt_centroid
,wkt_coords
,wkt_reverse
. As part of this, package now uses Rcpp and BH (boost headers), so installation from source requires compilation (#32)
MINOR IMPROVEMENTS
- vignette available on docs site only now
wellknown v0.6.0
BUG FIXES
- fix to
wkt_wkb
method; support new version of V8 that converts JS buffers to raw vectors (#29)
wellknown v0.5.0
NEW FEATURES
- New functions
wkt_wkb()
andwkb_wkt()
for converting WKT to WKB, and WKB to WKT. Depends onV8
for doing the conversion. (#5) - New function
get_centroid()
to get a centroid (lon, lat) for a WKT character string or a GeoJSON list object (#14) (#15) wkt2geojson()
gains a new parameternumeric
. It isTRUE
by default, meaning that we convert values to numeric unless you setnumeric=FALSE
in which case we maintain numbers as strings, useful when you want to retain zero digits after the decimal (#14)wkt2geojson()
gains a new parametersimplify
, which ifTRUE
attempts to simplify from a multi- geometry type to a single type (e.g., mulitpolygon to polygon) when there's really only a single object. Applies to multi features only. (#20)- Throughout package now we account for 3D and 4D WKT. For
wkt2geojson()
GeoJSON doesn't support a 4th dimension so we drop the 4th value, but forgeojson2wkt()
you can have GeoJSON with a 4th value so that you can convert it and any 3D data to WKT. We've added checks to make sure not more than 4D is used, and we followsf
by filling in zeros for any objects that are shorter in number of dimensions than the object with the largest number of dimensions (#18) (#23) geojson2wkt()
inputs it accepts have changed. The function now accepts two different formats of GeoJSON like data. 1) The old format of full GeoJSON as a list likelist('type' = 'Point', 'coordinates' = c(116.4, 45.2))
, and 2) a simplified formatlist(Point = c(116.4, 52.2))
(#17) (#19)
MINOR IMPROVEMENTS
- Removed
magrittr
package. Simply load the package to have access to pipes (#25) - Fixes to
lint()
function for validating WKT to make it work in more cases (#9)
BUG FIXES
- Fixed bug in
wkt2geojson()
to not be case-sensitive to object names (e.g. , nowpoint
,Point
, andPOINT
are all fine) (#16)
wellknown v0.1.0
NEW FEATURES
- Releasd to CRAN.