Skip to content

Commit

Permalink
fix all segmentizes
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Oct 8, 2024
1 parent 53936f1 commit 60593d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformations/segmentize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ segmentize(method::Manifold, geom, max_distance::Real; threaded = _False()) = se
# generic implementation
function segmentize(method::Manifold, geom; max_distance, threaded::Union{Bool, BoolsAsTypes} = _False())
@assert max_distance > 0 "`max_distance` should be positive and nonzero! Found $(method.max_distance)."
segmentize_function = Base.Fix1(_segmentize, method)
segmentize_function(x) = _segmentize(method, x; max_distance)
return apply(segmentize_function, TraitTarget(GI.LinearRingTrait(), GI.LineStringTrait()), geom; threaded)
end

Expand Down

0 comments on commit 60593d6

Please sign in to comment.