Skip to content

Clean up isobands output for empty bands#2957

Merged
mfedderly merged 1 commit intomasterfrom
mf/fix-isobands
Nov 22, 2025
Merged

Clean up isobands output for empty bands#2957
mfedderly merged 1 commit intomasterfrom
mf/fix-isobands

Conversation

@mfedderly
Copy link
Copy Markdown
Collaborator

Bands that are above the highest data in the grid will no longer incorrectly emit a polygon that contains the entire grid. This was a regression from the changes in #2926. This reverts the broken behavior and instead omits a Feature with the properties entry for the band, but then a MultiPolygon geometry with a coordinates value of exactly [].

Fixes #2956

- Bands that are above the highest data in the grid will no longer incorrectly emit a polygon that contains the entire grid

Fixes #2956
@mfedderly
Copy link
Copy Markdown
Collaborator Author

cc @smallsaucepan and @l-sola

@l-sola
Copy link
Copy Markdown

l-sola commented Nov 21, 2025

Tested and working! Thanks for the quick solution @mfedderly

@smallsaucepan
Copy link
Copy Markdown
Member

Thanks @mfedderly and @l-sola 👍

@mfedderly mfedderly merged commit c04c67b into master Nov 22, 2025
3 checks passed
@mfedderly mfedderly deleted the mf/fix-isobands branch November 22, 2025 01:38
@plainheart
Copy link
Copy Markdown

Hi, I just upgraded turf from 7.2.0 to 7.3.0 and found that the isobands function can not work. Is this fix worth a patch release (7.3.1) to prevent further developers from getting stuck on this issue?

@smallsaucepan
Copy link
Copy Markdown
Member

Hi @plainheart Subscribe to #2962 to keep up to date on the next release (should be out soon).

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.

Isobands are not working as before

4 participants