Interface IRaster2
- Namespace
- ESRI.ArcGIS.DatasourcesRaster
- Assembly
- ESRI.Server.DatasourcesRaster.dll
Provides access to members that control a raster.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("0D668D08-92C1-4999-9A77-490790821969")]
public interface IRaster2
Remarks
IRaster2 interface, new at ArcGIS 9.2, provides many functions working with a Raster object.
- Set geodata transformation on Raster and perform pixel and map transformation.
- Set GeoTransformations (datum transformation) for raster projection.
- Get raster attribute table and raster colormap
- Create raster cursor with a specified pixel block.
Properties
AttributeTable
The raster value attribute table.
ITable AttributeTable { get; set; }
Property Value
Colormap
The colormap.
IRasterColormap Colormap { get; set; }
Property Value
GeoTransformations
The set of geographic transformations to be applied.
IGeoTransformationOperationSet GeoTransformations { get; set; }
Property Value
GeodataXform
The geodata transform.
IGeodataXform GeodataXform { get; set; }
Property Value
Remarks
After you set a GeodataXform on a Raster and perform SaveAs, you must also set the extent, width and height of the raster in the space after the transformation.
RasterDataset
The parent raster dataset.
IRasterDataset RasterDataset { get; }
Property Value
Remarks
<P>The <STRONG>RasterDataset</STRONG> object represents a dataset on disk or in a database. It is composed of one or more persistent raster bands. The dataset provides access only to operations that apply to the entire dataset, with the <STRONG>RasterBand</STRONG> providing access to operations that occur on individual bands.</P> <P>The RasterDataset object performs basic dataset management functions, such as copy, rename, and delete. It can also instantiat RasterBand and <STRONG>Raster</STRONG> objects representing other aspects of the data. It can be used to examine dataset properties including different format, extent, spatial reference, and number of bands.</P> <P>The spatial reference of the raster raster dataset can be changed through interface <STRONG>IGeoDatasetSchemaEdit</STRONG>, but it does not project the dataset, only changes the coordinate system associated with the dataset.<BR>The pyramid of the raster dataset can be built or rebuilt to improve display performance for large raster datasets.</P>
RasterXformer
The raster transformer.
IRasterXformer RasterXformer { get; }
Property Value
Methods
CreateCursorEx(IPnt)
Creates a cursor with a given pixel block size or native block size.
IRasterCursor CreateCursorEx(IPnt pBlockSize)
Parameters
pBlockSizeIPnt
Returns
GetPixelValue(int, int, int)
Gets the pixel value for a given band at a given column and row.
object GetPixelValue(int iBand, int iColumn, int iRow)
Parameters
Returns
MapToPixel(double, double, out int, out int)
Converts a location (x, y) in map space into pixel space.
void MapToPixel(double x, double y, out int pColumn, out int pRow)
Parameters
PixelToMap(int, int, out double, out double)
Converts a location (column, row) in pixel space into map space.
void PixelToMap(int iColumn, int iRow, out double pX, out double pY)
Parameters
ToMapX(int)
Maps a pixel column to the x coordinate in map space.
double ToMapX(int iColumn)
Parameters
iColumnint
Returns
ToMapY(int)
Maps a pixel row to the y coordinate in map space.
double ToMapY(int iRow)
Parameters
iRowint
Returns
ToPixelColumn(double)
Maps a x coordinate in map space to the pixel column.
int ToPixelColumn(double x)
Parameters
xdouble
Returns
ToPixelRow(double)
Maps a y coordinate in map space to the pixel row.
int ToPixelRow(double y)
Parameters
ydouble