5

In DB Manager in QGIS 2.18.26

I want to select geometries in geopackage table. The returned geometry column is null but the source layer can be loaded as a geometry table in Qgis and i can read the geometry text.

Source Layer: Source layer with text geometry

Select on geometry column Select on geometry columns return NULL values enter image description here

How can i get the geometries?

EDIT: Here is the file

jlSta
  • 1,094
  • 7
  • 27

1 Answers1

4

I also get empty values when I query the geopackage. (I tried both, QGIS 2.18.26 and 3.6) Perhaps it is a bug...

But, when you query the qgis-layers on the other hand, the query returns results.

  • In DB-manager go to virtual layers > QGIS layers

  • add following query:

    select AsText(geometry) as geom, * from "transports_en_commun delijn_lines"

You get a result.

enter image description here

PieterB
  • 5,287
  • 22
  • 37