|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRasterModel
Provides access to members that control the Raster Model.
The RasterModel object is used to perform raster analysis using map algebra expressions and may include non-raster input/output formats (feature data, tables, etc). It also allows multiple lines of Map Algebra syntax to be used.
Steps to run a process using iRastermodel interface are as follows
Method Summary | |
---|---|
void |
bindFeatureClass(IFeatureClass featureClass,
String symbol)
Binds a symbol to a FeatureClass. |
void |
bindRaster(IRaster raster,
String symbol)
Binds a symbol to a Raster. |
void |
bindString(String strName,
String symbol)
Binds a symbol to a String. |
void |
bindTable(ITable table,
String symbol)
Binds a symbol to a Table. |
void |
execute()
Produces a Raster by executing a script. |
IFeatureClass |
getBoundFeatureClass(String symbol)
Finds the FeatureClass corresponding to a symbol. |
IRaster |
getBoundRaster(String symbol)
Finds the Raster corresponding to a symbol. |
ITable |
getBoundTable(String symbol)
Finds the Table corresponding to a symbol. |
Object |
getBoundUnknown(String symbol)
Finds the interface pointer corresponding to a symbol. |
void |
setScript(String rhs1)
The model script. |
void |
unbindSymbol(String symbol)
Unbinds a symbol. |
Method Detail |
---|
void setScript(String rhs1) throws IOException, AutomationException
A string specifying the expression to be executed. The script string needs to contain the references to the input data [for the process(es) to be run] that were defined using the "Bind..." methods. The syntax of the expression needs to be a valid Map Algebra expression.
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void bindRaster(IRaster raster, String symbol) throws IOException, AutomationException
Raster |
an input raster object created using IRaster interface |
symbol |
a string name which identifies the input Raster |
raster
- A reference to a com.esri.arcgis.geodatabase.IRaster (in)symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void bindFeatureClass(IFeatureClass featureClass, String symbol) throws IOException, AutomationException
FeatureClass |
an input FeatureClass object created using IFeatureClass interface |
symbol |
a string name which identifies the input FeatureClass |
featureClass
- A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void bindTable(ITable table, String symbol) throws IOException, AutomationException
table |
an input table object that implements ITable interface |
symbol |
a string name which identifies the input table |
table
- A reference to a com.esri.arcgis.geodatabase.ITable (in)symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void bindString(String strName, String symbol) throws IOException, AutomationException
strName |
a string value representing a name of an input object. It is typically used to specify files but can also represent the names of datasets such as Raster, FeatureClass...etc |
symbol |
a string name used to represent the input strName |
strName
- The strName (in)symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void execute() throws IOException, AutomationException
This method creates an object by executing the string expression created using the IRasterModel:Script property. The script defines the map algebra expression to run a process, or processes, using input data that are defined by the "Bind" methods.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IRaster getBoundRaster(String symbol) throws IOException, AutomationException
symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IFeatureClass getBoundFeatureClass(String symbol) throws IOException, AutomationException
symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ITable getBoundTable(String symbol) throws IOException, AutomationException
symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getBoundUnknown(String symbol) throws IOException, AutomationException
symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void unbindSymbol(String symbol) throws IOException, AutomationException
symbol |
a string specifying the name of a bound symbol object that supports the IRasterModel interface |
symbol
- The symbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |