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

Merge vector layers algorithm fails when ID fields have different data type (Integer instead of Integer64) #28730

Closed
qgib opened this issue Jan 3, 2019 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Jan 3, 2019

Author Name: Carolyn Krause (Carolyn Krause)
Original Redmine Issue: 20911
Affected QGIS version: 3.4.3
Redmine category:processing/core


I ran the Merge vector layers algorithm on three multipolygon polygon shapefiles. The algorithm completely failed to create a merged layer. The log is as follows:

Processing algorithm…
Algorithm 'Merge vector layers' starting…
Input parameters:
{ 'CRS' : None, 'LAYERS' : ['C:/Users/CRRGIS/Documents/GIS DataBase/CRCWMA/Area Controlled - Group Workday at Valley View.shp','C:/Users/CRRGIS/Documents/GIS DataBase/CRCWMA/Area Treated Detail 2015-16_normalized.shp','C:/Users/CRRGIS/Documents/GIS DataBase/CRCWMA/Combined CWMA Area Controlled 2012-2014.shp'], 'OUTPUT' : 'memory:' }

Taking destination CRS EPSG:3734 from layer
Setting output type to MultiPolygon
ID field in layer Combined CWMA Area Controlled 2012-2014 has different data type than in other layers (Integer instead of Integer64)
Execution failed after 0.12 seconds

Loading resulting layers

Algorithm 'Merge vector layers' finished

This is inconsistent with the algorithm description, which says

If attributes tables are different, the attribute table of the resulting layer will contain the attributes from all input layers. New attributes will be added for the original layer name and source.

It seems like QGIS should be able to combine an integer field with an integer64 field, but even if it can't it should still merge the layers, and put the incompatible attributes in two separate ID fields, renaming one of them if necessary.

@qgib
Copy link
Contributor Author

qgib commented Jan 7, 2019

Author Name: Giovanni Manghi (@gioman)


Please attach sample data.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2019

Author Name: Giovanni Manghi (@gioman)


Closing for lack of feedback.


  • resolution was changed from to no timely feedback
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Mar 8, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant