diff --git a/DESCRIPTION b/DESCRIPTION index 9a0ea5d..4a09b07 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: googlePolylines Type: Package Title: Encoding Coordinates into 'Google' Polylines -Version: 0.6.10001 +Version: 0.6.10002 Date: 2018-05-25 Authors@R: c( person("David", "Cooley", ,"dcooley@symbolix.com.au", role = c("aut", "cre")), diff --git a/NEWS.md b/NEWS.md index bff7b9d..32eedaa 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,10 +1,14 @@ -# googlePolylines 0.6.0 +# v0.6.1 + +* `polyline_wkt()` uses `std::setprecision(12)` in lon / lat stream + +# v0.6.0 * Example converting to `sfc` and `sf` * `as.data.frame.sfencoded()` to convert back to `data.frame` class * `decode()` - decodes encoded polylines to lat/lon -# googlePolylines 0.4.0 +# v0.4.0 * `[.sfencoded` subset to keep encoded attributes * `print.sfencoded` to nicely print the encoded columns \ No newline at end of file diff --git a/src/wkt.cpp b/src/wkt.cpp index 7341f73..3873a50 100644 --- a/src/wkt.cpp +++ b/src/wkt.cpp @@ -16,7 +16,7 @@ namespace bgm = bg::model; void addLonLatToWKTStream(std::ostringstream& os, float lon, float lat ) { - os << lon << " " << lat; + os << std::setprecision(12) << lon << " " << lat; } void geom_type(const char *cls, int *tp = NULL) {