Add rasters and feature tables from a GeoPackage to a map.
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.
When the sample loads, the feature tables and rasters from the GeoPackage will be shown on the map.
- Open the GeoPackage using
GeoPackage.OpenAsync(path)
. - Iterate through available rasters exposed by
geopackage.GeoPackageRasters
.- For each raster, create a raster layer using
new Rasterlayer(geopackageRaster)
, then add it to the map.
- For each raster, create a raster layer using
- 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.
- For each feature table, create a feature layer using
- GeoPackage
- GeoPackage.GeoPackageFeatureTables
- GeoPackage.GeoPackageRasters
- GeoPackageFeatureTable
- GeoPackageRaster
The Aurora Colorado GeoPackage holds datasets that cover Aurora, Colorado.
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).
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.
container, layer, map, OGC, package, raster, table