From 3841ec8e9d184aa7e28d00bb2a52297d5696a4fa Mon Sep 17 00:00:00 2001 From: Anshul Singhvi Date: Mon, 7 Oct 2024 21:12:29 -0700 Subject: [PATCH] +fix --- src/transformations/segmentize.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transformations/segmentize.jl b/src/transformations/segmentize.jl index 32f42d2ff..df5882406 100644 --- a/src/transformations/segmentize.jl +++ b/src/transformations/segmentize.jl @@ -179,8 +179,8 @@ 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(x) = _segmentize(method, x; max_distance) - return apply(segmentize_function, TraitTarget(GI.LinearRingTrait(), GI.LineStringTrait()), geom; threaded) + _segmentize_function(geom) = _segmentize(method, geom, GI.trait(geom); max_distance) + return apply(_segmentize_function, TraitTarget(GI.LinearRingTrait(), GI.LineStringTrait()), geom; threaded) end function segmentize(method::SegmentizeMethod, geom; threaded::Union{Bool, BoolsAsTypes} = _False())