Provides access to members that control a raster.
Members
Name | Description | |
---|---|---|
AttributeTable | The raster value attribute table. | |
Colormap | The colormap. | |
CreateCursorEx | Creates a cursor with a given pixel block size or native block size. | |
GeodataXform | The geodata transform. | |
GeoTransformations | The set of geographic transformations to be applied. | |
GetPixelValue | Gets the pixel value for a given band at a given column and row. | |
MapToPixel | Converts a location (x, y) in map space into pixel space. | |
PixelToMap | Converts a location (column, row) in pixel space into map space. | |
RasterDataset | The parent raster dataset. | |
RasterXformer | The raster transformer. | |
ToMapX | Maps a pixel column to the x coordinate in map space. | |
ToMapY | Maps a pixel row to the y coordinate in map space. | |
ToPixelColumn | Maps a x coordinate in map space to the pixel column. | |
ToPixelRow | Maps a y coordinate in map space to the pixel row. |
IRaster2.AttributeTable Property
The raster value attribute table.
Public Property AttributeTable As ITable
public ITable AttributeTable {get; set;}
IRaster2.Colormap Property
The colormap.
Public Property Colormap As IRasterColormap
public IRasterColormap Colormap {get; set;}
IRaster2.CreateCursorEx Method
Creates a cursor with a given pixel block size or native block size.
Public Function CreateCursorEx ( _
ByVal pBlockSize As IPnt _
) As IRasterCursor
public IRasterCursor CreateCursorEx (
IPnt pBlockSize
);
IRaster2.GeodataXform Property
The geodata transform.
Public Property GeodataXform As IGeodataXform
public IGeodataXform GeodataXform {get; set;}
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.
IRaster2.GeoTransformations Property
The set of geographic transformations to be applied.
Public Property GeoTransformations As IGeoTransformationOperationSet
public IGeoTransformationOperationSet GeoTransformations {get; set;}
IRaster2.GetPixelValue Method
Gets the pixel value for a given band at a given column and row.
Public Function GetPixelValue ( _
ByVal iBand As Integer, _
ByVal iColumn As Integer, _
ByVal iRow As Integer _
) As Object
public object GetPixelValue (
int iBand,
int iColumn,
int iRow
);
IRaster2.MapToPixel Method
Converts a location (x, y) in map space into pixel space.
Public Sub MapToPixel ( _
ByVal x As Double, _
ByVal y As Double, _
ByRef pColumn As Integer, _
ByRef pRow As Integer _
)
public void MapToPixel (
double x,
double y,
ref int pColumn,
ref int pRow
);
IRaster2.PixelToMap Method
Converts a location (column, row) in pixel space into map space.
Public Sub PixelToMap ( _
ByVal iColumn As Integer, _
ByVal iRow As Integer, _
ByRef pX As Double, _
ByRef pY As Double _
)
public void PixelToMap (
int iColumn,
int iRow,
ref double pX,
ref double pY
);
IRaster2.RasterDataset Property
The parent raster dataset.
Public ReadOnly Property RasterDataset As IRasterDataset
public IRasterDataset RasterDataset {get;}
IRaster2.RasterXformer Property
The raster transformer.
Public ReadOnly Property RasterXformer As IRasterXformer
public IRasterXformer RasterXformer {get;}
IRaster2.ToMapX Method
Maps a pixel column to the x coordinate in map space.
Public Function ToMapX ( _
ByVal iColumn As Integer _
) As Double
public double ToMapX (
int iColumn
);
IRaster2.ToMapY Method
Maps a pixel row to the y coordinate in map space.
Public Function ToMapY ( _
ByVal iRow As Integer _
) As Double
public double ToMapY (
int iRow
);
IRaster2.ToPixelColumn Method
Maps a x coordinate in map space to the pixel column.
Public Function ToPixelColumn ( _
ByVal x As Double _
) As Integer
public int ToPixelColumn (
double x
);
IRaster2.ToPixelRow Method
Maps a y coordinate in map space to the pixel row.
Public Function ToPixelRow ( _
ByVal y As Double _
) As Integer
public int ToPixelRow (
double y
);
Classes that implement IRaster2
Classes | Description |
---|---|
Raster | An in-memory representation of a dynamic raster that can perform resampling and reprojection. |
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.