Open a GeoPackage, obtain a raster from the package, and display the table as a RasterLayer
.
- Create a
GeoPackage
by passing the path to a.gpkg
file stored locally on the device. - Load the
GeoPackage
with.LoadAsync()
. - Wait for the package to load.
- Create a
RasterLayer
by obtaining the firstRaster
in the list of.GeoPackageRasters
, and passing thatRaster
to theRasterLayer
. - Finally, add the
RasterLayer
the Map's operational layers.
- GeoPackage
- GeoPackageRaster
- RasterLayer
This sample downloads the following items from ArcGIS Online automatically:
- AuroraCO.zip - GeoPackage with datasets that cover Aurora Colorado: Public art (points), Bike trails (lines), and Subdivisions (polygons), Airport noise (raster), Buildings (raster).
Layers, OGC, container, geopackage, package, raster