You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Breaking: Line and Polygon extract optimisation (#824)
* faster line extract
* performance
* extract in a separate file
* flatten
* bugfixes
* some more comments
* more perf tweaks
* bugfix
* fix extract ambiguities
* more ambiguity
* Bugfix geomtrait
* arg fixes
* add id column
* tests and bugfixes
* bugfix
* set id default to _False()
* fix tests
Copy file name to clipboardExpand all lines: src/methods/burning/polygon.jl
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,14 @@ function _burn_polygon!(B::AbstractDimArray, trait, geom;
24
24
# Lines
25
25
n_on_line =0
26
26
if boundary !==:center
27
-
_check_intervals(B, boundary)
27
+
_check_intervals(B, boundary, verbose)
28
28
if boundary ===:touches
29
-
if_check_intervals(B, boundary)
29
+
if_check_intervals(B, boundary, verbose)
30
30
# Add line pixels
31
31
n_on_line =_burn_lines!(B, geom; fill)::Int
32
32
end
33
33
elseif boundary ===:inside
34
-
if_check_intervals(B, boundary)
34
+
if_check_intervals(B, boundary, verbose)
35
35
# Remove line pixels
36
36
n_on_line =_burn_lines!(B, geom; fill=!fill)::Int
37
37
end
@@ -135,9 +135,9 @@ end
135
135
136
136
const INTERVALS_INFO ="makes more sense on `Intervals` than `Points` and will have more correct results. You can construct dimensions with a `X(values; sampling=Intervals(Center()))` to achieve this"
0 commit comments