Skip to content

Replace unary_union with union_all#1270

Merged
giswqs merged 3 commits intomasterfrom
union
Nov 18, 2025
Merged

Replace unary_union with union_all#1270
giswqs merged 3 commits intomasterfrom
union

Conversation

@giswqs
Copy link
Copy Markdown
Member

@giswqs giswqs commented Nov 18, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 18, 2025 17:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the codebase to use the newer union_all() method instead of the deprecated unary_union property from geopandas. The PR also includes an unrelated fix in the deckgl module that corrects a parameter name passed to the parent class.

  • Replaces all occurrences of .unary_union with .union_all() across three files
  • Fixes incorrect parameter name _height to height in deckgl.Map initialization
  • Ensures compatibility with geopandas 1.0.0+ API

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
leafmap/stac.py Updates two usages of unary_union to union_all() in the maxar_search function for spatial filtering
leafmap/deckgl.py Changes parameter from _height to height when initializing the parent lonboard.Map class
leafmap/common.py Updates four usages of unary_union to union_all() across filter_bounds, get_3dep_dem, and get_nhd functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread leafmap/deckgl.py

super().__init__(
_height=height,
height=height,
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

This parameter name change from _height to height appears unrelated to the PR title 'Replace unary_union with union_all'. Consider separating unrelated changes into separate PRs for clearer version control history and easier code review. However, if this is intentional (e.g., fixing a bug found during the refactoring), it should be mentioned in the PR description.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 18, 2025

@github-actions github-actions Bot temporarily deployed to pull request November 18, 2025 17:32 Inactive
@giswqs giswqs merged commit 3daf65f into master Nov 18, 2025
16 checks passed
@giswqs giswqs deleted the union branch November 18, 2025 17:34
giswqs added a commit that referenced this pull request Dec 6, 2025
* Rename height param in deckgl

* Replace unary_union with union_all
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