Skip to content

Commit

Permalink
wkt precision #23
Browse files Browse the repository at this point in the history
  • Loading branch information
SymbolixAU committed May 29, 2018
1 parent 7586dc1 commit 78eed8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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")),
Expand Down
8 changes: 6 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/wkt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 78eed8b

Please sign in to comment.