|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.spatialanalyst.RasterZonalOp
public class RasterZonalOp
A mechanism for performing zonal operations on rasters.
| Constructor Summary | |
|---|---|
RasterZonalOp()
Constructs a RasterZonalOp using ArcGIS Engine. |
|
RasterZonalOp(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. RasterZonalOp theRasterZonalOp = (RasterZonalOp) obj; |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this object with another |
void |
getCellSize(int[] envType,
double[] cellSize)
Gets the type and value of cell size in the RasterAnalysis. |
static String |
getClsid()
getClsid. |
String |
getDefaultOutputRasterPrefix()
The default output raster prefix. |
String |
getDefaultOutputVectorPrefix()
The default output vector prefix. |
void |
getExtent(int[] envType,
IEnvelope[] extent)
Gets the type and values of extent in the RasterAnalysis. |
IGeoDataset |
getMask()
Mask allows processing to occur only for a selected set of cells. |
ISpatialReference |
getOutSpatialReference()
The output spatial reference of GeoAnalysis. |
IWorkspace |
getOutWorkspace()
The output workspace of GeoAnalysis. |
int |
getVerifyType()
The verify type of the RasterAnalysis. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
void |
reset()
Remove all previously stored default rasteranalysis environments. |
void |
restoreToPreviousDefaultEnvironment()
Restores to the previous default raster analysis environment. |
void |
setAsNewDefaultEnvironment()
Sets the raster analysis environment of the object as new default environment. |
void |
setCellSize(int envType,
Object cellSizeProvider)
Sets the type and value of cell size in the RasterAnalysis. |
void |
setDefaultOutputRasterPrefix(String rasterPrefix)
The default output raster prefix. |
void |
setDefaultOutputVectorPrefix(String vectorPrefix)
The default output vector prefix. |
void |
setExtent(int envType,
Object extentProvider,
Object snapRasterData)
Sets the type and values of extent in the RasterAnalysis. |
void |
setMaskByRef(IGeoDataset mask)
Mask allows processing to occur only for a selected set of cells. |
void |
setOutSpatialReferenceByRef(ISpatialReference spatialReference)
The output spatial reference of GeoAnalysis. |
void |
setOutWorkspaceByRef(IWorkspace workspace)
The output workspace of GeoAnalysis. |
void |
setVerifyType(int verifyType)
The verify type of the RasterAnalysis. |
ITable |
tabulateArea(IGeoDataset zoneDataset,
IGeoDataset classDataset)
Calculates cross tabulated areas between two datasets. |
IGeoDataset |
zonalFill(IGeoDataset zoneDataset,
IGeoDataset weightDataset)
Fills zones using the minimum cell value from the 'weightRaster', along the zone boundary. |
IGeoDataset |
zonalGeometry(IGeoDataset zoneDataset,
int type)
Calculates for each zone of the input zone Dataset the specified geometry measure. |
ITable |
zonalGeometryAsTable(IGeoDataset geoDataset)
Calculates all geometry characteristics for each zone in a table. |
IGeoDataset |
zonalStatistics(IGeoDataset zone,
IGeoDataset value,
int type,
boolean ignoreNoData)
Calculates in each output cell the statistic of the values of all cells in the value raster that belongs to the same zone. |
ITable |
zonalStatisticsAsTable(IGeoDataset zone,
IGeoDataset value,
boolean ignoreNoData)
Calculates all statistics for each zone in a table. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public RasterZonalOp()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public RasterZonalOp(Object obj)
throws IOException
RasterZonalOp theRasterZonalOp = (RasterZonalOp) obj;
obj to RasterZonalOp.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public void setCellSize(int envType,
Object cellSizeProvider)
throws IOException,
AutomationException
|
envType |
An enumeration type specifying the raster cellsize environment settings for analysis. All subsequent results will be to the value specified. It can be of type esriRasterEnvMaxOf – The largest cell size of all input raster datasets that are specifed in the function. This is the default. This option is not suitable for methods such as IInterpolationOp::IDW, IDensityOp:KernalDensity etc. where features are the only inputs. Use esriRasterEnvValue instead. esriRasterEnvMinOf - Smallest cell size of all input raster datasets. This option is not suitable for methods such as IInterpolationOp::IDW, IDensityOp:KernalDensity etc. where features are the only inputs. Use esriRasterEnvValue instead esriRasterEnvValue - Any user specified value for the cell size. Use this option to specify a particular value for a cell size or for methods such as IInterpolationOp::IDW, IDensityOp:KernalDensity etc. where features are the only input. |
|
[cellSizeProvider] |
A specified value (double) or RasterDataset that is used to provide the cellsize environment value. |
setCellSize in interface IRasterAnalysisEnvironmentenvType - A com.esri.arcgis.geoanalyst.esriRasterEnvSettingEnum constant (in)cellSizeProvider - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getCellSize(int[] envType,
double[] cellSize)
throws IOException,
AutomationException
|
envType |
will return an enumeration type constant specifying the raster cellsize environment settings for analysis. It can be of type esriRasterEnvMaxOf - largest cell size of all input datasets. This is the default. esriRasterEnvMinOf - smallest cell size of all input datasets esriRasterEnvValue - User specified value. |
|
cellsize |
returns a value that specifying the current environment setting for cellsize |
getCellSize in interface IRasterAnalysisEnvironmentenvType - A com.esri.arcgis.geoanalyst.esriRasterEnvSettingEnum constant (out: use single element array)cellSize - The cellSize (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setExtent(int envType,
Object extentProvider,
Object snapRasterData)
throws IOException,
AutomationException
|
envType |
An enumeration type specifying the raster extent environment settings for analysis. All subsequent results will be to this extent. It can be of type esriRasterEnvMinOf – Intersection of Inputs - All input feature extents are intersected and the extent common to all is used as the extent values for the study area. This is the default. esriRasterEnvMaxOf - Union of Inputs - All input feature extents are combined and the outer extent of the union is used. esriRasterEnvValue - Value - User specified values for the Left, Right, Top and Bottom extent (x, y values) of the study area. |
|
[extentProvider] |
An envelope object supporting IEnvelope interface or RasterDataset that is used to provide the environment values of the analysis extent. |
|
[snapRasterData] |
A RasterDataset that can be used to snap all output raster datasets to the cell registration of the specified raster. All subsequent results will share the lower-left corner and cell size of the specified raster. |
setExtent in interface IRasterAnalysisEnvironmentenvType - A com.esri.arcgis.geoanalyst.esriRasterEnvSettingEnum constant (in)extentProvider - A Variant (in, optional, pass null if not required)snapRasterData - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getExtent(int[] envType,
IEnvelope[] extent)
throws IOException,
AutomationException
|
envType |
will return an enumeration constant specifying the raster extent environment settings for analysis. It can be of type, esriRasterEnvMinOf – Intersection of Inputs - All input feature extents are intersected and the extent common to all is used as the extent values for the study area. This is the default. esriRasterEnvMaxOf - Union of Inputs - All input feature extents are combined and the outer extent of the union is used. esriRasterEnvValue - Value - User specified values for the Left, Right, Top and Bottom extent (x, y values) of the study area. |
|
extent |
An envelope object supporting IEnvelope interface used to describe the values of the analysis extent. |
getExtent in interface IRasterAnalysisEnvironmentenvType - A com.esri.arcgis.geoanalyst.esriRasterEnvSettingEnum constant (out: use single element array)extent - A reference to a com.esri.arcgis.geometry.IEnvelope (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMaskByRef(IGeoDataset mask)
throws IOException,
AutomationException
setMaskByRef in interface IRasterAnalysisEnvironmentmask - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeoDataset getMask()
throws IOException,
AutomationException
The mask can be a reference to a Raster, RasterDataset, RasterBand, or RasterDescriptor object or FeatureClass, FeatureClassDescriptor object.
The mask identifies only those cells within the analysis extent that will be considered when performing an action. Only the identified cells will be processed in subsequent output raster datasets. All other cells are characterized as nodata.
getMask in interface IRasterAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setVerifyType(int verifyType)
throws IOException,
AutomationException
setVerifyType in interface IRasterAnalysisEnvironmentverifyType - A com.esri.arcgis.geoanalyst.esriRasterVerifyEnum constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getVerifyType()
throws IOException,
AutomationException
The value is an enumeration environment setting that contols the way that an output RasterDatasets are written to file when during analysis. The verify enumeration can be of type
esriRasterEnvVerifyOn - specifies that the user will be prompted to verify the output already exists and it is okay to overwrite it
esriRasterEnvVerifyOff - specifies that output data will be automatically overwritten if already exists. This is the default environment setting.
esriRasterEnvVerifyError - specifies that an error will be produced when the output already exists.
getVerifyType in interface IRasterAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDefaultOutputRasterPrefix()
throws IOException,
AutomationException
The user specified prefix which is included to all temporary output RasterDatasets during analysis.
getDefaultOutputRasterPrefix in interface IRasterAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultOutputRasterPrefix(String rasterPrefix)
throws IOException,
AutomationException
setDefaultOutputRasterPrefix in interface IRasterAnalysisEnvironmentrasterPrefix - The rasterPrefix (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDefaultOutputVectorPrefix()
throws IOException,
AutomationException
The user specified prefix which is included to all temporary output Shapefiles during analysis.
getDefaultOutputVectorPrefix in interface IRasterAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDefaultOutputVectorPrefix(String vectorPrefix)
throws IOException,
AutomationException
setDefaultOutputVectorPrefix in interface IRasterAnalysisEnvironmentvectorPrefix - The vectorPrefix (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAsNewDefaultEnvironment()
throws IOException,
AutomationException
Will set all current environment settings of the RasterAnalysis object as the new default environment. All subsequent analysis will use the set object properties unless otherwise specified.
setAsNewDefaultEnvironment in interface IRasterAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void restoreToPreviousDefaultEnvironment()
throws IOException,
AutomationException
This will restore the default environment to the settings of the "previous" RasterAnalysisEnvironment object used to set the default environement. Note: If multiple default environments have been set it will reference the past settings one at a time in order of sequence.
restoreToPreviousDefaultEnvironment in interface IRasterAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void reset()
throws IOException,
AutomationException
This method can be used to restore the system default raster environment settings for extent, cell size, precision, spatial reference and/or current workspace for analysis. This will change all previously altered environment settings made to the RasterAnlaysis object back to the original settings.
reset in interface IRasterAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOutWorkspaceByRef(IWorkspace workspace)
throws IOException,
AutomationException
setOutWorkspaceByRef in interface IGeoAnalysisEnvironmentworkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IWorkspace getOutWorkspace()
throws IOException,
AutomationException
The variable is an object specifying the directory or subdirectory to contain the output rasterdataset
getOutWorkspace in interface IGeoAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOutSpatialReferenceByRef(ISpatialReference spatialReference)
throws IOException,
AutomationException
setOutSpatialReferenceByRef in interface IGeoAnalysisEnvironmentspatialReference - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISpatialReference getOutSpatialReference()
throws IOException,
AutomationException
The variable references an object that specifies the output features spatial reference. If not explicitly set the spatial reference of the input features will be used.
getOutSpatialReference in interface IGeoAnalysisEnvironmentIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeoDataset zonalStatistics(IGeoDataset zone,
IGeoDataset value,
int type,
boolean ignoreNoData)
throws IOException,
AutomationException
| zone | an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor that identifies the zone for each cell location |
| value | an input integer or floating-point Raster, RasterDataset, RasterBand, or RasterDescriptor defining the values of the cells that are to be used in the zonal calculations |
| type | an esriGeoAnalysisStatisticsEnum defining the zonal statitistic to calculate within each zone
The enumeration types are: esriGeoAnalysisStatsMajority for the majority value, esriGeoAnalysisStatsMaximum for the maximum value, esriGeoAnalysisStatsMean for the mean, esriGeoAnalysisStatsMedian for the median, esriGeoAnalysisStatsMinimum for the minimum value, esriGeoAnalysisStatsMinority for the minority value, esriGeoAnalysisStatsRange for the range of values, esriGeoAnalysisStatsStd for the standard deviation, esriGeoAnalysisStatsSum for the sum of the values, or esriGeoAnalysisStatsVariety for the variety of the values. |
| ignoreNoData | a Boolean defining the manner in which NoData values on the valueDataset that fall within a zone defined by the zoneDataset will influence the output results
If True, then if a NoData value exists in a cell on the value Raster within any particular zone defined by zoneDataset, the cell will be ignored and only cells on the value Raster that have data values within the zone will be used in the processing for the output. If False, then if a NoData value exists on the value Raster within any particular zone defined by zoneDataset, there is insufficient information to complete the computation of the values for all of the cells within the zone, therefore, the entire zone will receive the NoData value on the output Raster and will not appear in the output table. |
zonalStatistics in interface IZonalOpzone - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)value - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)type - A com.esri.arcgis.geoanalyst.esriGeoAnalysisStatisticsEnum constant (in)ignoreNoData - The ignoreNoData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITable zonalStatisticsAsTable(IGeoDataset zone,
IGeoDataset value,
boolean ignoreNoData)
throws IOException,
AutomationException
| zone | an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor that identifies the zone for each cell location |
| value | an input integer or floating-point Raster, RasterDataset, RasterBand, or RasterDescriptor defining the values of the cells that are to be used in the zonal calculations |
| ignoreNoData | a Boolean defining the manner in which NoData values on the valueDataset that fall within a zone defined by the zoneDataset will influence the output results
If True, then if a NoData value exists in a cell on the value Raster within any particular zone defined by zoneDataset, the cell will be ignored and only cells on the value Raster that have data values within the zone will be used in the processing for the output. If False, then if a NoData value exists on the value Raster within any particular zone defined by zoneDataset, there is insufficient information to complete the computation of the values for all of the cells within the zone, therefore, the entire zone will receive the NoData value on the output Raster and will not appear in the output table. |
zonalStatisticsAsTable in interface IZonalOpzone - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)value - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)ignoreNoData - The ignoreNoData (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeoDataset zonalGeometry(IGeoDataset zoneDataset,
int type)
throws IOException,
AutomationException
| zoneDataset | an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor that identifies the zone for each cell location |
| type | an esriGeoAnalysisZonalGeometryEnum that defines which zonal calculations will be performed on the zoneDataset
The esriGeoAnalysisZonalGeometryEnums are: esriGeoAnalysisZonalGeometryArea for zonal area calculations. esriGeoAnalysisZonalGeometryCentroid for zone centroid calculations. esriGeoAnalysisZonalGeometryPerimeter for zonal perimeter calculations. esriGeoAnalysisZonalGeometryThickness for zonal thickness calculations. For complete information on the zonal calculations performed by each esriGeoAnalysisZonalGeometryEnum, refer to the individual command reference. |
zonalGeometry in interface IZonalOpzoneDataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)type - A com.esri.arcgis.spatialanalyst.esriGeoAnalysisZonalGeometryEnum constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITable zonalGeometryAsTable(IGeoDataset geoDataset)
throws IOException,
AutomationException
| geoDataset | an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor that identifies zones |
zonalGeometryAsTable in interface IZonalOpgeoDataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGeoDataset zonalFill(IGeoDataset zoneDataset,
IGeoDataset weightDataset)
throws IOException,
AutomationException
| zoneDataset | an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor defining the zones to be filled |
| weightDataset | an input Raster, RasterDataset, RasterBand, or RasterDescriptor whose values will be used to fill the zones |
zonalFill in interface IZonalOpzoneDataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)weightDataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITable tabulateArea(IGeoDataset zoneDataset,
IGeoDataset classDataset)
throws IOException,
AutomationException
|
zoneDataset |
an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor defining the zones to be filled The zones can be defined as an integer raster layer or a polygon feature layer. |
|
classDataset |
an input Raster, RasterDataset, RasterBand, or RasterDescriptor or FeatureClass, FeatureClassDescriptor that defines the classes that will have their area summarized within each zone |
tabulateArea in interface IZonalOpzoneDataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)classDataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (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 | ||||||||