Skip to content

Update HRA for pygeoprocessing zonal_stats geometry change #1881

@emlys

Description

@emlys

The changes made in natcap/pygeoprocessing#428 caused an HRA test to fail, because HRA's geometry simplification function was always setting the vector geometry type to Unknown. pygeoprocessing.zonal_statistics will now require a type of Polygon or MultiPolygon, so this raised an error.

I think we can copy over the geometry type from the input vector, which should always be Polygon or MultiPolygon for the AOI. It may still be Unknown in the case of habitat or stressor vectors that contain multiple geometry types.

Metadata

Metadata

Assignees

Labels

actionsRelating to GitHub Actionscriticalfor issues likely to obstruct the whole dev team (e.g. broken builds)in progressThis issue is actively being worked ontaskSomething needs to be done

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions