Skip to content

Handle no-overlap for categorical rasters#315

Merged
twelch merged 3 commits intodevfrom
categorialRasterStats
Jul 17, 2024
Merged

Handle no-overlap for categorical rasters#315
twelch merged 3 commits intodevfrom
categorialRasterStats

Conversation

@avmey
Copy link
Copy Markdown
Contributor

@avmey avmey commented Jul 15, 2024

rasterStats would empty histograms when no overlap was present. Updates rasterStats to return valid histogram metrics for all categoryMetricValues. Tested in california-reports

Copy link
Copy Markdown
Contributor

@twelch twelch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work with this PR @avmey and finding the issue. In the process of reviewing it I found a small bug. I also felt the new code for setting the default value code of the histogram should get moved up and reworked. I went ahead and did this in an add-on PR #316. Please feel free to take a look and merge if you're happy with it. I'm happy to review with you.

Comment thread packages/geoprocessing/src/toolbox/geoblaze/rasterStats.ts Outdated
Comment thread packages/geoprocessing/src/toolbox/geoblaze/rasterStats.ts Outdated
* fix no overlap check, shift histo default stat value calc, shift Histogram export

* move area default value init, improve comments

* nits
@twelch twelch merged commit 0c667dc into dev Jul 17, 2024
@twelch twelch deleted the categorialRasterStats branch July 17, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants