Provides access to members that allow raster geometry processing.
Members
Name | Description | |
---|---|---|
Clip | Clips the input raster based on the specified envelope. | |
Flip | Flips the input raster. | |
GetRasterXFormByIndex | Gets the polynomial order and the polynomial coefficients of the indexed transformation. | |
GetRasterXFormCount | Gets the number of transformations. | |
GetRasterXFormOrderByIndex | Gets the polynomial order of the indexed transformation. | |
IsPixelToMapTransSimple | Indicates if the transformation of pixel to map is simple. | |
LeastSquareFit | Computes a least squares fit for the input control points. | |
Merge | Merges the input rasters into a single dataset. | |
Mirror | Mirrors the input raster. | |
Mosaic | Mosaics the input rasters into a single dataset. | |
PointsMap2PixelTransform | Performs the map to pixel transformation. | |
PointsTransform | Transforms a set of points based upon the transformation being applied to the input raster. | |
Project | Projects the input raster using specified transformation type. | |
ProjectFast | Projects the input raster using a single polynomial fit to compute the adjustment between coordinate systems. | |
PutRasterXForm | Sets a polynomial transformation to the Raster. | |
Rectify | Persists the input raster to a new dataset of the specified format. | |
Register | Outputs the current transformation properties to the dataset header or auxilliary file. | |
Resample | Resamples the input raster to a new cellsize. | |
ReScale | Scales the input raster by the specified x and y scale factors. | |
Reset | Resets the input raster to its native coordinate space. | |
Rotate | Rotates the input raster around the specified pivot by an angle specified in degrees. | |
Shift | Shifts the input raster by deltaX and deltaY map units. | |
TwoPointsAdjust | Performs a Hermite transformation on the input raster based upon the 2 input control point pairs. | |
Warp | Warps the input raster based upon the input control points using the transformation type specified. |
IRasterGeometryProc3.Clip Method
Clips the input raster based on the specified envelope.
Public Sub Clip ( _
ByVal pRectangle As IEnvelope, _
ByVal pRaster As IRaster _
)
public void Clip (
IEnvelope pRectangle,
IRaster pRaster
);
IRasterGeometryProc3.Flip Method
Flips the input raster.
Public Sub Flip ( _
ByVal pRaster As IRaster _
)
public void Flip (
IRaster pRaster
);
IRasterGeometryProc3.GetRasterXFormByIndex Method
Gets the polynomial order and the polynomial coefficients of the indexed transformation.
Public Sub GetRasterXFormByIndex ( _
ByVal pRaster As IRaster, _
ByVal band As Integer, _
ByVal forward As Boolean, _
ByVal Index As Integer, _
ByRef Order As esriGeoTransTypeEnum, _
ByRef pVar As Object _
)
public void GetRasterXFormByIndex (
IRaster pRaster,
int band,
bool forward,
int Index,
ref esriGeoTransTypeEnum Order,
ref object pVar
);
Remarks
GetRasterXFormByIndex method returns the transformation coefficients and the order of transformation on a specified raster band. The transformation coefficients are returned as a variant, which is an n x 2 array where n varies with the transformation order. First order transformation returns a 3 x 2 array, second order and third order transformations return 6 x 2 and 10 x 2 arrays, respectively.
IRasterGeometryProc3.GetRasterXFormCount Method
Gets the number of transformations.
Public Function GetRasterXFormCount ( _
ByVal pRaster As IRaster, _
ByVal band As Integer _
) As Integer
public int GetRasterXFormCount (
IRaster pRaster,
int band
);
Remarks
The GetRasterXFormCount method returns the number of geometric transformations on a specified raster band.
IRasterGeometryProc3.GetRasterXFormOrderByIndex Method
Gets the polynomial order of the indexed transformation.
Public Function GetRasterXFormOrderByIndex ( _
ByVal pRaster As IRaster, _
ByVal band As Integer, _
ByVal Index As Integer _
) As esriGeoTransTypeEnum
public esriGeoTransTypeEnum GetRasterXFormOrderByIndex (
IRaster pRaster,
int band,
int Index
);
Remarks
The GetRasterXFormOrderByIndex method returns the order of a specified geometric transformation on a raster band.
IRasterGeometryProc3.IsPixelToMapTransSimple Property
Indicates if the transformation of pixel to map is simple.
Public Function get_IsPixelToMapTransSimple ( _
ByVal pRaster As IRaster _
) As Boolean
public bool get_IsPixelToMapTransSimple (
IRaster pRaster
);
IRasterGeometryProc3.LeastSquareFit Method
Computes a least squares fit for the input control points.
Public Function LeastSquareFit ( _
ByVal sourceControlPoints As IPointCollection, _
ByVal targetControlPoints As IPointCollection, _
ByVal transformType As esriGeoTransTypeEnum, _
ByVal forwardTransformation As Boolean, _
ByVal returnTransformationCoef As Boolean _
) As Object
public object LeastSquareFit (
IPointCollection sourceControlPoints,
IPointCollection targetControlPoints,
esriGeoTransTypeEnum transformType,
bool forwardTransformation,
bool returnTransformationCoef
);
IRasterGeometryProc3.Merge Method
Merges the input rasters into a single dataset.
Public Function Merge ( _
ByVal saveas_name As String, _
ByVal pWorkspace As IWorkspace, _
ByVal outRasterFormat As String, _
ByVal CellSize As Double, _
ByVal pSR As ISpatialReference, _
ByVal pRaster As IRaster _
) As IRaster
public IRaster Merge (
string saveas_name,
IWorkspace pWorkspace,
string outRasterFormat,
double CellSize,
ISpatialReference pSR,
IRaster pRaster
);
IRasterGeometryProc3.Mirror Method
Mirrors the input raster.
Public Sub Mirror ( _
ByVal pRaster As IRaster _
)
public void Mirror (
IRaster pRaster
);
IRasterGeometryProc3.Mosaic Method
Mosaics the input rasters into a single dataset.
Public Function Mosaic ( _
ByVal saveas_name As String, _
ByVal pWorkspace As IWorkspace, _
ByVal outRasterFormat As String, _
ByVal CellSize As Double, _
ByVal pSR As ISpatialReference, _
ByVal pRaster As IRaster _
) As IRaster
public IRaster Mosaic (
string saveas_name,
IWorkspace pWorkspace,
string outRasterFormat,
double CellSize,
ISpatialReference pSR,
IRaster pRaster
);
IRasterGeometryProc3.PointsMap2PixelTransform Method
Performs the map to pixel transformation.
Public Function PointsMap2PixelTransform ( _
ByVal pInPoints As IPointCollection, _
ByVal isForward As Boolean, _
ByVal pRaster As IRaster _
) As IPointCollection
public IPointCollection PointsMap2PixelTransform (
IPointCollection pInPoints,
bool isForward,
IRaster pRaster
);
Remarks
The PointsMap2PixelTransform method takes all the transformations on a Raster, and then performs transformations between map space and pixel space. This method works better for rasters with square cell size.
IRasterGeometryProc3.PointsTransform Method
Transforms a set of points based upon the transformation being applied to the input raster.
Public Function PointsTransform ( _
ByVal inPoints As IPointCollection, _
ByVal isForward As Boolean, _
ByVal pRaster As IRaster _
) As IPointCollection
public IPointCollection PointsTransform (
IPointCollection inPoints,
bool isForward,
IRaster pRaster
);
IRasterGeometryProc3.Project Method
Projects the input raster using specified transformation type.
Public Sub Project ( _
ByVal pNewSR As ISpatialReference, _
ByVal PrjMethodType As esriRasterPrjMethodTypeEnum, _
ByVal resampleType As rstResamplingTypes, _
ByVal newCellsize As Double, _
ByVal pRaster As IRaster _
)
public void Project (
ISpatialReference pNewSR,
esriRasterPrjMethodTypeEnum PrjMethodType,
rstResamplingTypes resampleType,
double newCellsize,
IRaster pRaster
);
IRasterGeometryProc3.ProjectFast Method
Projects the input raster using a single polynomial fit to compute the adjustment between coordinate systems.
Public Sub ProjectFast ( _
ByVal pNewSR As ISpatialReference, _
ByVal resampleType As rstResamplingTypes, _
[ByRef CellSize As Object], _
[ByVal pRaster As IRaster] _
)
public void ProjectFast (
ISpatialReference pNewSR,
rstResamplingTypes resampleType,
ref object CellSize,
ref IRaster pRaster
);
IRasterGeometryProc3.PutRasterXForm Method
Sets a polynomial transformation to the Raster.
Public Sub PutRasterXForm ( _
ByVal pRaster As IRaster, _
ByVal clean As Boolean, _
ByVal Order As esriGeoTransTypeEnum, _
ByRef pVar As Object _
)
public void PutRasterXForm (
IRaster pRaster,
bool clean,
esriGeoTransTypeEnum Order,
ref object pVar
);
Remarks
The PutRasterXForm method appends a polynomial transformation to a raster. You can also clean the existing transformations on the raster by setting parameter clean to be true. Since calling this method does not automatically update the cell size and extent of the raster like other geometric operations (Shift, Rotate, etc.) do, Rectify or SaveAs will not persist the transformations to a raster dataset directly. Therefore, this method is not recommended for ourside developers.
IRasterGeometryProc3.Rectify Method
Persists the input raster to a new dataset of the specified format.
Public Sub Rectify ( _
ByVal saveas_name As String, _
ByVal Format As String, _
ByVal pRaster As IRaster _
)
public void Rectify (
string saveas_name,
string Format,
IRaster pRaster
);
Remarks
The output formats as well as the strings used for the supported formats are below, and they are case sensitive:
Format Name | String Used |
---|---|
Imagine | "IMAGINE Image" |
TIFF | "TIFF" |
GRID | "GRID" |
JPEG | "JPG" |
JP2000 | "JP2" |
BMP | "BMP" |
PNG | "PNG" |
GIF | "GIF" |
PCI Raster | "PIX" |
USGS ASCII DEM | "DEM" |
X11 Pixmap | "XPM" |
PCRaster | "MAP" |
USGS ASCII DEM | "DEM" |
IRasterGeometryProc3.Register Method
Outputs the current transformation properties to the dataset header or auxilliary file.
Public Sub Register ( _
ByVal pRaster As IRaster _
)
public void Register (
IRaster pRaster
);
IRasterGeometryProc3.Resample Method
Resamples the input raster to a new cellsize.
Public Sub Resample ( _
ByVal resampleType As rstResamplingTypes, _
ByVal newCellsize As Double, _
ByVal pRaster As IRaster _
)
public void Resample (
rstResamplingTypes resampleType,
double newCellsize,
IRaster pRaster
);
IRasterGeometryProc3.ReScale Method
Scales the input raster by the specified x and y scale factors.
Public Sub ReScale ( _
ByVal xScale As Double, _
ByVal yScale As Double, _
ByVal pRaster As IRaster _
)
public void ReScale (
double xScale,
double yScale,
IRaster pRaster
);
IRasterGeometryProc3.Reset Method
Resets the input raster to its native coordinate space.
Public Sub Reset ( _
ByVal pRaster As IRaster _
)
public void Reset (
IRaster pRaster
);
IRasterGeometryProc3.Rotate Method
Rotates the input raster around the specified pivot by an angle specified in degrees.
Public Sub Rotate ( _
ByVal ipPivotPoint As IPoint, _
ByVal rotateAngle As Double, _
ByVal pRaster As IRaster _
)
public void Rotate (
IPoint ipPivotPoint,
double rotateAngle,
IRaster pRaster
);
IRasterGeometryProc3.Shift Method
Shifts the input raster by deltaX and deltaY map units.
Public Sub Shift ( _
ByVal deltaX As Double, _
ByVal deltaY As Double, _
ByVal pRaster As IRaster _
)
public void Shift (
double deltaX,
double deltaY,
IRaster pRaster
);
IRasterGeometryProc3.TwoPointsAdjust Method
Performs a Hermite transformation on the input raster based upon the 2 input control point pairs.
Public Sub TwoPointsAdjust ( _
ByVal sourceControlPoints As IPointCollection, _
ByVal targetControlPoints As IPointCollection, _
ByVal pRaster As IRaster _
)
public void TwoPointsAdjust (
IPointCollection sourceControlPoints,
IPointCollection targetControlPoints,
IRaster pRaster
);
IRasterGeometryProc3.Warp Method
Warps the input raster based upon the input control points using the transformation type specified.
Public Sub Warp ( _
ByVal sourceControlPoints As IPointCollection, _
ByVal targetControlPoints As IPointCollection, _
ByVal transformType As esriGeoTransTypeEnum, _
ByVal pRaster As IRaster _
)
public void Warp (
IPointCollection sourceControlPoints,
IPointCollection targetControlPoints,
esriGeoTransTypeEnum transformType,
IRaster pRaster
);
Remarks
Warp method computes a polynomial transformation based on the input links, then applies this transformation to the input raster. The polynomial transformation specified can be first, second, or third order polynomials. Each transformation order requires a minimum number of control links. They are 3, 6, and 10 for order 1,2, and 3, respectively.
Classes that implement IRasterGeometryProc3
Classes | Description |
---|---|
RasterGeometryProc | A mechanism to perform raster geometric operations, such as flip, rotate, and merge on rasters. |