-
Notifications
You must be signed in to change notification settings - Fork 4
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 7 9 +2
Lines 101 144 +43
=====================================
+ Hits 101 144 +43
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, just a few comments
R/geo_linestring.R
Outdated
|
||
for(j in seq_len(num_vertices-1)) { | ||
bearing <- prior_bearing + runif(1, -0.5, 0.5) * max_rotation * 2 | ||
distance <- runif(1, max = max_length) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you do stats::runif
here
R/wkt_linestring.R
Outdated
#' Random WKT linestring | ||
#' | ||
#' @export | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpicky, but can you remove this empty line
R/wkt_linestring.R
Outdated
#' the line, numeric vector of the form \code{west (long), south (lat), east | ||
#' (long), north (lat)}. optional | ||
#' @param fmt (integer/numeric) number of digits. Default: 7 | ||
#' @return WKT; a character vector with one or more POLYGON strings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/POLYGON/LINESTRING
I've added an extra commit as there was an issue with the wkt, which this web app http://arthur-e.github.io/Wicket/sandbox-gmaps3.html happily ignored. |
Hi Scott, I've added the requested changes. Samuel |
Sorry for all the extra commits, time to stop working for today. |
LGTM thanks so much for this contribution |
Hi,
I've added the creation of random linestrings, code structure is based on https://github.com/node-geojson/geojson-random/ but I've changed some parts to use spherical math.
Best,
Samuel