Skip to content

Commit 50cdbef

Browse files
committed
more linear -> planar
1 parent 7ea0676 commit 50cdbef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transformations/segmentize.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ _segmentize(method, geom) = _segmentize(method, geom, GI.trait(geom))
195195
This is a method which performs the common functionality for both linear and geodesic algorithms,
196196
and calls out to the "kernel" function which we've defined per linesegment.
197197
=#
198-
function _segmentize(method::Union{Linear, Spherical}, geom, T::Union{GI.LineStringTrait, GI.LinearRingTrait}; max_distance)
198+
function _segmentize(method::Union{Planar, Spherical}, geom, T::Union{GI.LineStringTrait, GI.LinearRingTrait}; max_distance)
199199
first_coord = GI.getpoint(geom, 1)
200200
x1, y1 = GI.x(first_coord), GI.y(first_coord)
201201
new_coords = NTuple{2, Float64}[]
@@ -209,7 +209,7 @@ function _segmentize(method::Union{Linear, Spherical}, geom, T::Union{GI.LineStr
209209
return rebuild(geom, new_coords)
210210
end
211211

212-
function _fill_linear_kernel!(::Linear, new_coords::Vector, x1, y1, x2, y2; max_distance)
212+
function _fill_linear_kernel!(::Planar, new_coords::Vector, x1, y1, x2, y2; max_distance)
213213
dx, dy = x2 - x1, y2 - y1
214214
distance = hypot(dx, dy) # this is a more stable way to compute the Euclidean distance
215215
if distance > max_distance

0 commit comments

Comments
 (0)