Gpkg.Database
Returns a navigation table of the layers in an OGC GeoPackage (.gpkg).
Syntax
Gpkg.Database(
source as binary,
optional options as record
) as table
Remarks
A GeoPackage is the OGC's standard container for vector features, attributes and tiles, and it is a SQLite database underneath. Reading one usually means GDAL or a spatial ODBC driver. This function reads the SQLite container and decodes the GeoPackageBinary geometry blobs, returning geometry as WKT by default — the form Power BI's map visuals consume, so a layer lands in a map without an intermediate step.
One row per gpkg_contents entry.
Sqlite3.DatabaseA GeoPackage is a SQLite database, so this reader calls
Sqlite3.Database rather than embedding a second copy of
the b-tree parser. If you are pasting the source, paste both and name the second
query exactly Sqlite3.Database. PQDriverless.mez contains both already.
Options:
GeometryFormat: Text, default"WKT". How geometry columns come back —"WKT"(well-known text),"WKB"(raw ISO well-known binary with the GeoPackageBinary header stripped), or"GeoPackageBinary"(the blob untouched).IncludeSystemTables: A logical (true/false). Also list thegpkg_*catalog tables (default is false).MaxRows: A number. Return at most this many rows per table.Strict: A logical (true/false). When true, tolerated malformations become errors; by default an undecodable geometry blob returns null (default is false).