- fix a few examples for
`geojson2wkt()`

that had calls to`matrix()`

that were leading to warnings because the input vectors were not a multiple of the nrow/ncol (#35)

- fixes to make this package compatible with an upcoming version of BH (v1.75.0) (#33)

- Dropped import package V8 used in
`wkt_wkb()`

and`wkb_wkt()`

functions; now using package`wk`

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)

- vignette available on docs site only now

- fix to
`wkt_wkb`

method; support new version of V8 that converts JS buffers to raw vectors (#29)

- New functions
`wkt_wkb()`

and`wkb_wkt()`

for converting WKT to WKB, and WKB to WKT. Depends on`V8`

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 parameter`numeric`

. It is`TRUE`

by default, meaning that we convert values to numeric unless you set`numeric=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 parameter`simplify`

, which if`TRUE`

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 for`geojson2wkt()`

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 follow`sf`

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 like`list('type' = 'Point', 'coordinates' = c(116.4, 45.2))`

, and 2) a simplified format`list(Point = c(116.4, 52.2))`

(#17) (#19)

- 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)

- Fixed bug in
`wkt2geojson()`

to not be case-sensitive to object names (e.g. , now`point`

,`Point`

, and`POINT`

are all fine) (#16)

- Releasd to CRAN.