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

Problems working with GeoPackage, does not show all features #51254

Closed
2 tasks done
hbecerraGIS opened this issue Dec 18, 2022 · 5 comments
Closed
2 tasks done

Problems working with GeoPackage, does not show all features #51254

hbecerraGIS opened this issue Dec 18, 2022 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers

Comments

@hbecerraGIS
Copy link

What is the bug or the crash?

When working with GeoPackage two things happen:

It does not show all features on the map, neither in the attribute table nor in the feature count.

Shows all objects on the map and in the attribute table, but not the feature count.

With other formats such as shapefile and kml it does not happen

image

Steps to reproduce the issue

2022-12-18.12-40-59.mp4
2022-12-18.12-41-33.mp4

Versions

QGIS version
3.28.2-Firenze
QGIS code revision
b47e00b
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.6.1
PROJ version
9.1.1
EPSG Registry database version
v10.076 (2022-08-31)
GEOS version
3.11.1-CAPI-1.17.1
SQLite version
3.39.4
PDAL version
2.4.3
PostgreSQL client version
unknown
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.13.1
OS version
Windows 10 Version 2009

Active Python plugins
CalculateGeometry
0.6.8
EquirectangularViewer
1.4
GroupStats
2.2.6
kmltools
3.1.26
layer2kmz
1.5.3
loadthemall
3.3.0
mapswipetool_plugin
1.2
OpenTopography-DEM-Downloader
1.0
Qgis2threejs
2.7.1
qgis2web
3.16.0
quick_map_services
0.19.32
redLayer
2.2
rvt-qgis
0.9.4.1
slyr_community
4.0.6
wbt_for_qgis
1.0.5
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
sagaprovider
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

I upgraded QGIS from 3.28.1 to 3.28.2 and the error remains

@hbecerraGIS hbecerraGIS added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 18, 2022
@nicogodet
Copy link
Member

Was this gpkg created with 3.28.1 and potentially GDAL 3.6.0 ?
See #51188 ?

@nicogodet
Copy link
Member

Could you share the data ?

@nicogodet nicogodet added the Feedback Waiting on the submitter for answers label Dec 18, 2022
@github-actions
Copy link

github-actions bot commented Jan 2, 2023

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Jan 2, 2023
@github-actions
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2023
@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label May 31, 2023
@gpointnerbbooe
Copy link

I had the same issue, presumably. The reason was that after editing the gpkg in QGIS (copying points from another layer multiple times and also deleting some points), the feature_count in gpkg_ogr_contents did not match the number of features in the main table anymore. I cannot reproduce what exactly caused the mismatch during editing, however.
The solution was to update the feature count again to match the number of features in the main table in sqlite:
UPDATE gpkg_ogr_contents set feature_count=(SELECT count(*) from table) where table_name='table';
Taken from here: https://gis.stackexchange.com/questions/429925/geopackage-sqlite-features-count-but-dont-exist-qgis
Hope this helps someone.

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! Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

3 participants