Skip to content

Commit 639e999

Browse files
koito19960406claude
andcommitted
fix: correct ShapeError in coverage computation for street/grid unit
When using the spatial index, only a subset of geometries (those whose bounding boxes intersect the buffer) are returned. Assigning their coverage values directly to self.metadata caused a length mismatch. Now initialise a full-length list of zeros and fill only the indexed positions, so all rows in self.metadata always have a coverage value. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a29fa47 commit 639e999

3 files changed

Lines changed: 166 additions & 303 deletions

File tree

0 commit comments

Comments
 (0)