Bug report #20090
GeoPackage SQL issues in DB Manager
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | DB Manager | ||
Affected QGIS version: | 3.2.3 | Regression?: | No |
Operating System: | Windows 7 64bits | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | duplicate |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 27912 |
Description
DB Manager issues with GPKG geometries on perfectly valid GeoPackage files (made by QGIS or ogr2ogr).
The following SQL queries fail in DB Manager
( but succeed in DB Browser 4 SQLite with EnableGpkgAmphibiousMode ) :
SELECT AsWKT(geom) FROM mypolygon;
--> returns NULL ; should return: MULTIPOLYGON(...
SELECT ST_Area(geom) FROM mypolygon;
--> returns NULL ; should return numeric
SELECT isvalid(geom) FROM mypolygon;
--> returns -1 (which means: UNKNOWN) ; should return 0 or 1
Related issues
History
#1 Updated by Giovanni Manghi about 6 years ago
- Status changed from Open to Feedback
post the dataset plesae.
#2 Updated by Antoine Fonoxo about 6 years ago
- File mypolygon.gpkg added
SQL queries on geometries failed on every gpkg I tested.
Here is a sample.
I tested the same queries with ogrinfo (bundled with QGIS): no problem with geom functions.
#3 Updated by Giovanni Manghi about 6 years ago
- Related to Bug report #18974: No geometry operation on geopackages layers added
#4 Updated by Giovanni Manghi about 6 years ago
- Resolution set to duplicate
- Status changed from Feedback to Closed
duplicate of #18974 (edited)