com.esri.arcgis.geoanalyst
Interface IConversionOp

All Superinterfaces:
Serializable
All Known Implementing Classes:
RasterConversionOp

public interface IConversionOp
extends Serializable

Provides access to members that convert between raster and feature data.

Remarks

Product Availability

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


Method Summary
 IGeoDataset rasterDataToLineFeatureData(IGeoDataset dataset, IWorkspace pWorkspace, String name, boolean zeroAsBackground, boolean weeding, Object minDangle)
          Convert raster data to feature data (FeatureClass or FeatureDataset).
 IGeoDataset rasterDataToPointFeatureData(IGeoDataset dataset, IWorkspace pWorkspace, String name)
          Convert raster data to feature data (FeatureClass or FeatureDataset).
 IGeoDataset rasterDataToPolygonFeatureData(IGeoDataset dataset, IWorkspace pWorkspace, String name, boolean weeding)
          Convert raster data to feature data (FeatureClass or FeatureDataset).
 IGeoDataset toFeatureData(IGeoDataset dataset, int geometryType, IWorkspace pWorkspace, String name)
          Convert to feature data (FeatureClass or FeatureDataset).
 IRasterDataset toRasterDataset(IGeoDataset dataset, String rasterFormat, IWorkspace pWorkspace, String name)
          Convert to a RasterDataset.
 

Method Detail

toRasterDataset

IRasterDataset toRasterDataset(IGeoDataset dataset,
                               String rasterFormat,
                               IWorkspace pWorkspace,
                               String name)
                               throws IOException,
                                      AutomationException
Convert to a RasterDataset.

Remarks

dataset

Input featureclass, featureclassdescriptor, featurelayer to be converted to raster

rasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for rasterformat are "GRID", "IMAGINE Image" and "TIFF" respectively and they are case sensitive.

The format string “GRID” creates an output ESRI GRID with no file extension

The format string "TIFF" creates a TIFF file with ".tif" extension. ArcGIS also supports TIFF format with ".tiff" and ".tff" extensions. A format string "TIF" creates a TIFF file with ".tiff" extention and a format string "TFF" creates a TIFF file with ".tff" extension

The format string “IMAGINE Image” creates a raster output with “.img” file extension

pWorkspace

an object specifying the directory or subdirectory to contain the output rasterdataset

name

The name of the output raster dataset

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
dataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
rasterFormat - The rasterFormat (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

toFeatureData

IGeoDataset toFeatureData(IGeoDataset dataset,
                          int geometryType,
                          IWorkspace pWorkspace,
                          String name)
                          throws IOException,
                                 AutomationException
Convert to feature data (FeatureClass or FeatureDataset).

Remarks

dataset

the input Raster, RasterDataset, RasterBand, or RasterDescriptor to be converted to feature class

geometryType

The constant value specifying the shape type for the feature class. This shape type can be one of the following esriGeometryType.

esriGeometryPoint

esriGeometryPolyline

esriGeometryPolygon

pWorkspace

an object specifying the directory or subdirectory to contain the output feature class

name

The name of the output feature class

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
dataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
geometryType - A com.esri.arcgis.geometry.esriGeometryType constant (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGeoDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rasterDataToPointFeatureData

IGeoDataset rasterDataToPointFeatureData(IGeoDataset dataset,
                                         IWorkspace pWorkspace,
                                         String name)
                                         throws IOException,
                                                AutomationException
Convert raster data to feature data (FeatureClass or FeatureDataset).

Remarks

dataset

the input Raster, RasterDataset, RasterBand, or RasterDescriptor to be converted to feature class

pWorkspace

an object specifying the directory or subdirectory to contain the output feature class

name

The name of the output feature class

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
dataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGeoDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rasterDataToPolygonFeatureData

IGeoDataset rasterDataToPolygonFeatureData(IGeoDataset dataset,
                                           IWorkspace pWorkspace,
                                           String name,
                                           boolean weeding)
                                           throws IOException,
                                                  AutomationException
Convert raster data to feature data (FeatureClass or FeatureDataset).

Remarks

dataset

the input Raster, RasterDataset, RasterBand, or RasterDescriptor to be converted to feature class

pWorkspace

an object specifying the directory or subdirectory to contain the output feature class

name

The name of the output feature class

weeding

a Boolean specifying whether or not a weed tolerance will by used

If FALSE, no weeding is done

If TRUE, the featureclass is weeded to reduce the number of vertices.


The WEED option uses an algorithm designed specifically for raster-to-vector conversion not the Douglas-Puecker algorithm.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
dataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (in)
weeding - The weeding (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGeoDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rasterDataToLineFeatureData

IGeoDataset rasterDataToLineFeatureData(IGeoDataset dataset,
                                        IWorkspace pWorkspace,
                                        String name,
                                        boolean zeroAsBackground,
                                        boolean weeding,
                                        Object minDangle)
                                        throws IOException,
                                               AutomationException
Convert raster data to feature data (FeatureClass or FeatureDataset).

Remarks

dataSet

the input Raster, RasterDataset, RasterBand, or RasterDescriptor to be converted to feature class

pWorkspace

an object specifying the directory or subdirectory to contain the output feature class

name

The name of the output feature class

zeroAsBackground

a Boolean specifying the cell value that will identify the background cells. The raster is viewed as a set of foreground cells and background cells. The linear features are formed from the foreground cells.

If TRUE, the background is composed of cells of zero or less, or nodata. All cells whose value is greater than zero are the foreground.

If FALSE, the background is composed of NoData cells. All cells with valid values belong to the foreground.

weeding

a Boolean specifying whether or not a weed tolerance will by used

If FALSE, no weeding is done

If TRUE, the featureclass is weeded to reduce the number of vertices.


The WEED option uses the Douglas-Puecker algorithm.

minDangle

Minimum length of dangling polylines that will be retained.

The default is zero.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
dataset - A reference to a com.esri.arcgis.geodatabase.IGeoDataset (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (in)
zeroAsBackground - The zeroAsBackground (in)
weeding - The weeding (in)
minDangle - A Variant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGeoDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.