Skip to content

Commit

Permalink
+fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Oct 8, 2024
1 parent 60593d6 commit 3841ec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformations/segmentize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 3841ec8

Please sign in to comment.