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
Note on preserving (rows, cols) shape: compute_profiles, compute_density_profile, compute_speed_profile, and plot_profiles (imshow) expect each frame's profile array to reshape cleanly into (rows, cols) over the bounding box. By pre-filtering active grid cells whose interiors overlap walkable_area.polygon (shapely.intersects & ~shapely.touches) once and indexing only those active cells in a shapely.STRtree, all grid cells outside the walkable geometry (as well as non-overlapping cell-polygon pairs inside it) are completely skipped during polygon intersection while keeping exact (rows, cols) output arrays.
Activity
chraibi commentedon Mar 17, 2024
Is this still an issue with WalkableAreas? Can you upload an example?
chraibi commentedon Apr 4, 2024
@schroedtert
What if we check cells within the walkable area?
M-Colley commentedon Nov 21, 2026
Opened #599 addressing this optimization.
Note on preserving
(rows, cols)shape:compute_profiles,compute_density_profile,compute_speed_profile, andplot_profiles(imshow) expect each frame's profile array to reshape cleanly into(rows, cols)over the bounding box. By pre-filtering active grid cells whose interiors overlapwalkable_area.polygon(shapely.intersects & ~shapely.touches) once and indexing only those active cells in ashapely.STRtree, all grid cells outside the walkable geometry (as well as non-overlapping cell-polygon pairs inside it) are completely skipped during polygon intersection while keeping exact(rows, cols)output arrays.