com.esri.arcgis.geoanalyst
Interface IRasterImportOp2

All Superinterfaces:
Serializable
All Known Implementing Classes:
RasterConversionOp

public interface IRasterImportOp2
extends Serializable

Provides access to additional members that control the import of raster formats.

Remarks

Product Availability

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


Method Summary
 IRasterDataset importFromASCII(String asciiFile, IWorkspace outWorkspace, String outRasterName, String outRasterFormat, boolean isInteger)
          Imports a GRID ASCII file into a RasterDataset.
 IRasterDataset importFromFLOAT(String floatFile, IWorkspace outWorkspace, String outRasterName, String outRasterFormat)
          Imports a Float GRID file into a RasterDataset.
 IRasterDataset importFromUSGSDEM(String demFile, IWorkspace outWorkspace, String outRasterName, String outRasterFormat, boolean isInteger, Object zFactor)
          Imports a USGS DEM file into a RasterDataset.
 

Method Detail

importFromUSGSDEM

IRasterDataset importFromUSGSDEM(String demFile,
                                 IWorkspace outWorkspace,
                                 String outRasterName,
                                 String outRasterFormat,
                                 boolean isInteger,
                                 Object zFactor)
                                 throws IOException,
                                        AutomationException
Imports a USGS DEM file into a RasterDataset.

Remarks

demFile

The input USGS DEM file to be converted

OutWorkspace

An object specifying the directory or subdirectory to contain the output raster dataset

outRasterName

The name of the output raster dataset to be created

OutRasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for outRasterFormat 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

isInteger

A Boolean specifying the data type of the output raster

If TRUE, an integer raster will be created

If FALSE, a floating-point raster will be created

[zFactor]

The number of ground x, y Units in one surface ZUnit

The geoDataset ZUnits are multiplied by the specified zFactor to adjust the output Raster ZUnits to another unit of measure. If no zFactor is specified the value of the zFactor is 1. Higher z values will result in a more exaggerated relief (surface) and thus in a more extreme shading.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
demFile - The demFile (in)
outWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outRasterName - The outRasterName (in)
outRasterFormat - The outRasterFormat (in)
isInteger - The isInteger (in)
zFactor - A Variant (in, optional, pass null if not required)
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.

importFromASCII

IRasterDataset importFromASCII(String asciiFile,
                               IWorkspace outWorkspace,
                               String outRasterName,
                               String outRasterFormat,
                               boolean isInteger)
                               throws IOException,
                                      AutomationException
Imports a GRID ASCII file into a RasterDataset.

Remarks

asciiFile

The input ASCII file to be converted. The ASCII file must consist of header information of specific format.

OutWorkspace

an object specifying the directory or subdirectory to contain the output raster dataset

outRasterName

The name of the output raster dataset to be created

OutRasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for outRasterFormat 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

isInteger

A Boolean specifying the data type of the output raster

If TRUE, an integer raster will be created

If FALSE, a floating-point raster will be created

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
asciiFile - The asciiFile (in)
outWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outRasterName - The outRasterName (in)
outRasterFormat - The outRasterFormat (in)
isInteger - The isInteger (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.

importFromFLOAT

IRasterDataset importFromFLOAT(String floatFile,
                               IWorkspace outWorkspace,
                               String outRasterName,
                               String outRasterFormat)
                               throws IOException,
                                      AutomationException
Imports a Float GRID file into a RasterDataset.

Remarks

floatFile

The input floating point binary file to be converted

OutWorkspace

an object specifying the directory or subdirectory to contain the output raster dataset

outRasterName

The name of the output raster dataset to be created

OutRasterFormat

ESRI GRID, ERDAS Imagine or TIFF formats are supported. The strings for outRasterFormat 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

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
floatFile - The floatFile (in)
outWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outRasterName - The outRasterName (in)
outRasterFormat - The outRasterFormat (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.