ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Create Raster Type

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

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:

    • Install ST_Raster in Oracle
    • Install ST_Raster in PostgreSQL
    • Install ST_Raster in SQL Server

  • Only the geodatabase administrator can run the Create Raster Typetool.

Syntax

CreateRasterType_management (input_database)
ParameterExplanationData 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

  • Current Workspace

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Geodatabase Administration toolset

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • 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 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal