Add rasters and feature tables from a GeoPackage to a map.
Use case
The OGC GeoPackage specification defines an open standard for sharing raster and vector data. You may want to use GeoPackage files to support file-based sharing of geographic data.
How to use the sample
When the sample loads, the feature tables and rasters from the GeoPackage will be shown on the map.
How it works
Create a GeoPackage object using the path the local geoPackage.
Connect to the GeoPackage::doneLoading signal.
Load the geoPackage geoPackage::load(), then iterate through the available rasters, exposed by geopackage::geoPackageRasters.
For each raster, create a raster layer using new Rasterlayer(geopackageRaster), then add it to the map.
Iterate through available feature tables, exposed by geopackage::geoPackageFeatureTables.
For each feature table, create a feature layer using new FeatureLayer(geopackageFeatureTable), then add it to the map.
Relevant API
GeoPackage
GeoPackage::doneLoading
GeoPackage::geoPackageFeatureTables
GeoPackage::geoPackageRasters
GeoPackageFeatureTable
GeoPackageRaster
Offline data
Read more about how to set up the sample's offline data here.
This sample features a GeoPackage with datasets that cover Aurora, Colorado: Public art (points), Bike trails (lines), Subdivisions (polygons), Airport noise (raster), and liquour license density (raster).
Additional information
GeoPackage uses a single SQLite file (.gpkg) that conforms to the OGC GeoPackage Standard. You can create a GeoPackage file (.gpkg) from your own data using the create a SQLite Database tool in ArcGIS Pro.