com.esri.arcgis.geodatabase
Interface IFieldEdit2

All Superinterfaces:
IField, IFieldEdit, Serializable
All Known Implementing Classes:
Field

public interface IFieldEdit2
extends IFieldEdit, Serializable

Provides access to members that edit the field properties including raster column definition.

Remarks

IFieldEdit2 provides access to the raster definition of a raster field in a geodatabase. You can set the spatial reference, alias to the raster field and for PGDB, and you can specify whether the field is managed by the geodatabase. RasterDef is required for a raster field.

The following code shows how to add a raster type field to a featureclass.

Dim pField As IField2

Dim pEdit As IFieldEdit2

Set pField = New Field

Set pEdit = pField

Dim pDef As IRasterDef

Set pDef = New RasterDef

pDef.Description = "RasterField"

pDef.IsManaged = True

pEdit.Type = esriFieldTypeRaster

pEdit.Name = "Raster"

pEdit.AliasName = "house_picture"

Set pEdit.RasterDef = pDef

Dim pTable As ITable

Set pTable = m_pFeatureClass ' needs open the featureclass beforehand

pTable.AddField pField

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux


Method Summary
 IRasterDef getRasterDef()
          The raster column definition.
 void setRasterDefByRef(IRasterDef rasterDef)
          The raster column definition.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IFieldEdit
setAliasName, setDefaultValue, setDomainByRef, setDomainFixed, setEditable, setGeometryDefByRef, setIsNullable, setLength, setName, setPrecision, setRequired, setScale, setType
 
Methods inherited from interface com.esri.arcgis.geodatabase.IField
checkValue, getAliasName, getDefaultValue, getDomain, getGeometryDef, getLength, getName, getPrecision, getScale, getType, getVarType, isDomainFixed, isEditable, isNullable, isRequired
 

Method Detail

getRasterDef

IRasterDef getRasterDef()
                        throws IOException,
                               AutomationException
The raster column definition.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDef
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRasterDefByRef

void setRasterDefByRef(IRasterDef rasterDef)
                       throws IOException,
                              AutomationException
The raster column definition.

Remarks

RasterDef is required for creating a raster field.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
rasterDef - A reference to a com.esri.arcgis.geodatabase.IRasterDef (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.