Skip to content

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

Closed
laasyapriya-code wants to merge 1 commit into
OSGeo:mainfrom
laasyapriya-code:feature/vdissolve-multi-column
Closed

laasyapriya-code wants to merge 1 commit into
OSGeo: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

@wenzeslaus wenzeslaus left a comment

Copy link
Copy Markdown
Member

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

ninsbl commented Apr 3, 2026

Copy link
Copy Markdown
Member

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

@petrasovaa

Copy link
Copy Markdown
Contributor

No response, closing.

@petrasovaa petrasovaa closed this Jul 17, 2026
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

4 participants