Skip to content

GridIntersect does not include cells with identical vertices, even with DISU #1198

@mkennard-aquaveo

Description

@mkennard-aquaveo

If I am dealing with DISU and a vertex grid, I want GridIntersect to return all cells intersected, but currently it removes cells that share the same vertices as a previously intersected cell. This is fine for layered grids such as with DIS and DISV, but with DISU which has no layers, it is a problem.

GridIntersect ._intersect_point_shapely() includes these lines which cull the results and which I would like to bypass:

if verts in parsed_points:
    continue

GridIntersect._intersect_linestring_shapely() has a similar code block. I would like a way to make that optional so that I can get all intersected cells in the results. Perhaps a kwarg called something like "keep_all_layers" could be used to bypass that code block.

I could submit a pull request if desired.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions