Skip to content

Commit baaf45a

Browse files
committed
Fixes issue #4
1 parent 5250db8 commit baaf45a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: fetchR
22
Type: Package
33
Title: Calculate fetch in New Zealand
4-
Version: 1.2-0
4+
Version: 1.2-1
55
Date: 2017-01-31
66
Authors@R: person("Blake", "Seers", role = c("aut", "cre"),
77
email = "blake.seers@gmail.com")

R/fetch.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fetch = function(lat, lon, max_dist = 300, n_bearings = 9,
101101

102102
# Create polygon (approximating a circle) with a given radius. These vertices
103103
# are used for creating the end points for the fetch bearings.
104-
d_bff = gBuffer(centre_point_proj, width = 30000, quadsegs = n_bearings)
104+
d_bff = gBuffer(centre_point_proj, width = max_dist * 1000, quadsegs = n_bearings)
105105

106106
# Subset NZ to incorporate only polygons within the radius to speed up
107107
# computation times.

0 commit comments

Comments
 (0)