Summary
Load raster datasets into an OGC GeoPackage raster pyramid.
Usage
The target GeoPackage can be created using the Create SQLite Database tool.
The GeoPackage raster name cannot already exist in the GeoPackage.
Raster data with an unknown coordinate reference will be created with a 6-level tiling scheme.
Syntax
AddRasterToGeoPackage_conversion (in_dataset, target_geopackage, raster_name, {tiling_scheme}, {tiling_scheme_file}, {area_of_interest})
Parameter | Explanation | Data Type |
in_dataset | The raster dataset to load into the OGC GeoPackage raster pyramid. | Raster Layer; Mosaic Layer |
target_geopackage | The target GeoPackage. | File; Workspace |
raster_name | The name of the output GeoPackage raster pyramid. | String |
tiling_scheme (Optional) | The tiling scheme used.
| String |
tiling_scheme_file (Optional) | A custom tiling scheme file that is required when tiling_scheme is set to FROM_FILE. | File |
area_of_interest (Optional) | Specify an area to limit the area of where you the raster loaded, rather than the entire dataset. | Feature Set |
Derived Output
Name | Explanation | Data Type |
out_geopackage_raster | Raster Dataset |
Code sample
AddRasterToGeoPackage example 1 (Python window)
The following Python window script demonstrates how to use the AddRasterToGeoPackage tool.
import arcpy
arcpy.AddRasterToGeoPackage_conversion("c:/data/san_diego.png", "c:/data/san_diego.gpkg", "SanDiego", "TILED")
Environments
This tool does not use any geoprocessing environments.
Licensing information
- ArcGIS Desktop Basic: Yes
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes