Summary
The Create Raster Typetool installs the ST_Raster data type in a geodatabase stored in Oracle, Microsoft SQL Server, or PostgreSQL.
Usage
This tool only works with enterprise geodatabases.
There are preparatory steps you must complete before you run the Create Raster Type tool. For instructions on running this tool, including preparatory steps, see the topic appropriate to your database management system:
Only the geodatabase administrator can run the Create Raster Typetool.
Syntax
CreateRasterType_management (input_database)
Parameter | Explanation | Data Type |
input_database | Specify the database connection (.sde) file for the geodatabase in which you want to install the ST_Raster data type. You must connect as the geodatabase administrator. | Workspace |
Code sample
CreateRasterType example 1 (Python window)
You can alter and run the following script from a Python window to create the ST_Raster type in an enterprise geodatabase in Oracle, PostgreSQL, or SQL Server.This example connects to the geodatabase through the database connection file productiongdb.sde in the temp folder. Change the location and file name to match those at your site.
import arcpy
input_database = "c:\\temp\\productionggdb.sde"
arcpy.CreateRasterType_management(input_database)
CreateRasterType example 2 (stand-alone Python script)
The following is a stand-alone script you can alter and run to create the ST_Raster type in your enterprise geodatabase in Oracle, PostgreSQL, or SQL Server.Change the product code and database connection file name and location to match those at your site.
# Description: create raster type
# Set the necessary product code
import arceditor
# Import arcpy module
import arcpy
# Local variables:
input_database = "c:\\temp\\ProductionGDB.sde"
# Process: Diagnose Version Metadata
arcpy.CreateRasterType_management(input_database)
Environments
Licensing information
- ArcGIS for Desktop Basic: No
- ArcGIS for Desktop Standard: Yes
- ArcGIS for Desktop Advanced: Yes