ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Add Raster to GeoPackage

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

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})
ParameterExplanationData 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.

  • TILED —The spatial reference of the input raster will be maintained and tiles will be generated consistent with the GeoPackage standard. This is the default.
  • ARCGISONLINE_SCHEME — Generate raster tiles in a Web Mercator coordinate reference (the same scheme developed for the Army Geospatial Center).
  • NSGPROFILE —A scaled transverse Mercator is used.
  • GOOGLE_EARTH_WEB_MERCATOR —Create raster tiles using the parameters in the Web Mercator coordinate reference.
  • FROM_FILE —Uses a custom tiling scheme from a file using an XML schema definition created using the Generate Tile Cache Tiling Scheme tool.
String
tiling_scheme_file
(Optional)

A custom tiling scheme file that is required when tiling_scheme is set to FROM_FILE.

File

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

Related topics

  • An overview of the To GeoPackage toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2017 Esri. | Privacy | Legal