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

Intersection of points and polygons with one field doesn't work well if result saved to GeoPackage #32927

Closed
phidrho opened this issue Nov 18, 2019 · 4 comments · Fixed by #32934
Assignees
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

@phidrho
Copy link
Contributor

phidrho commented Nov 18, 2019

Describe the bug
When doing an intersection between two vector layers (I tried with point and polygon layers, it is possible that it doesn't work well with other combinations of vector layers), if only one field was chosen to keep from source layer, after intersection algorithm and file type for result chosen to be geopackage layer (either inside existing geopackage db, or new one) - resulting layer doesn't contain data from chosen input field.

How to Reproduce
Geopackage file for testing:
qgis_bug.zip

see video:
YouTube - QGIS GPKG intersecton bug

QGIS and OS versions
Windows 10 Pro, version 1903

QGIS version
3.10.0-A Coruña
QGIS code revision
6ffa89e
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
3.0.2
Running against GDAL/OGR
3.0.2
Compiled against GEOS
3.8.0-CAPI-1.13.1
Running against GEOS
3.8.0-CAPI-1.13.1
Compiled against SQLite
3.29.0
Running against SQLite
3.29.0
PostgreSQL Client Version
11.5
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
6.2.1
Running against PROJ
Rel. 6.2.1, November 1st, 2019
OS Version
Windows 10 (10.0)
Active python plugins
gml_application_schema_toolbox;
LAStools;
mmqgis;
db_manager;
MetaSearch;
processing

Additional context

@phidrho phidrho added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Nov 18, 2019
@phidrho phidrho changed the title Intersection of point and polygons with one field doesn't work well if result saved to GeoPackage Intersection of points and polygons with one field doesn't work well if result saved to GeoPackage Nov 18, 2019
@gioman gioman added the Processing Relating to QGIS Processing framework or individual Processing algorithms label Nov 18, 2019
@gioman
Copy link
Contributor

gioman commented Nov 18, 2019

Confirmed also on 3.4. Works as expected when outputting to temp layer and shapefile. Not when saving to GPKG to a specific file/location.

@elpaso elpaso self-assigned this Nov 18, 2019
@elpaso
Copy link
Contributor

elpaso commented Nov 18, 2019

@elpaso
Copy link
Contributor

elpaso commented Nov 18, 2019

@gioman in 3.4 too? The code that introduced the bug looks landed in 3.6 (but I might be wrong)

@gioman
Copy link
Contributor

gioman commented Nov 18, 2019

@gioman in 3.4 too?

@elpaso yes I tested on the latest 3.4

nyalldawson pushed a commit to nyalldawson/QGIS that referenced this issue Nov 21, 2019
nyalldawson pushed a commit that referenced this issue Nov 21, 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

Successfully merging a pull request may close this issue.

3 participants