Skip to content

v.dissolve: add column2 support for multi-column dissolve#7243

Open
laasyapriya-code wants to merge 1 commit intoOSGeo:mainfrom
laasyapriya-code:feature/vdissolve-multi-column
Open

v.dissolve: add column2 support for multi-column dissolve#7243
laasyapriya-code wants to merge 1 commit intoOSGeo:mainfrom
laasyapriya-code:feature/vdissolve-multi-column

Conversation

@laasyapriya-code
Copy link
Copy Markdown

Solution: Introduce optional column2 parameter that creates a composite dissolve key (column_column2) for precise feature aggregation.

Key Changes:

  • Added column2 parameter with backward compatibility
  • Composite column creation: column + "_" + column2
  • All downstream operations updated to use composite key

-Usage:
bash
Single column (existing behavior)
v.dissolve input=roads output=roads_dissolved column=type
Multi-column (new feature)
v.dissolve input=roads output=roads_dissolved column=type column2=status

Fixes #7050

@github-actions github-actions bot added vector Related to vector data processing Python Related code is in Python module labels Mar 31, 2026
Copy link
Copy Markdown
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

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

This will need a thorough test to be considered for merging.

@ninsbl
Copy link
Copy Markdown
Member

ninsbl commented Apr 3, 2026

Did you consider allowing multiple input in column (maybe extending the option to columns)? That would be more flexible than adding a column2 option...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module Python Related code is in Python vector Related to vector data processing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] v.dissolve on more than one attribute columns

3 participants