Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to include 'layer' and 'path' attributes in Merge Vector Layers tool (#55397) (Request in QGIS) #9455

Open
qgis-bot opened this issue Dec 9, 2024 · 0 comments
Labels
3.42 QGIS 3.42 new features Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page.
Milestone

Comments

@qgis-bot
Copy link
Collaborator

qgis-bot commented Dec 9, 2024

Request for documentation

From pull request qgis/QGIS#59704
Author: @lanckmann
QGIS version: 3.42

Add option to include 'layer' and 'path' attributes in Merge Vector Layers tool (#55397)

PR Description:

Description

This pull request addresses Issue #55397 by adding a new option (checkbox) to the Merge Vector Layers processing tool. This option allows users to choose whether to include the layer and path attributes from the individual input vector layers in the resulting merged layer. By default, this option is enabled (true) to maintain backward compatibility.

Changes Made

  1. Added a New Boolean Parameter in initAlgorithm()
    • File Modified: qgsalgorithmmergevector.cpp
    • Details: Introduced a new boolean parameter ADD_SOURCE_FIELDS that provides the option to include source layer information (layer and path) in the merged output.
    addParameter(new QgsProcessingParameterBoolean(
        QStringLiteral("ADD_SOURCE_FIELDS"),
        QObject::tr("Add source layer information (layer name and path)"),
        true));
    
image

Commits tagged with [need-docs] or [FEATURE]

@DelazJ DelazJ added Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page. 3.42 QGIS 3.42 new features labels Dec 9, 2024
@DelazJ DelazJ added this to the QGIS 3.48 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.42 QGIS 3.42 new features Processing Alg (Features of) An algorithm. Use the Help button in the application to find the page.
Projects
None yet
Development

No branches or pull requests

2 participants