IRasterGeometryProc2 Interface

Provides access to members that allow raster geometry processing.

Members

Name Description
Method Clip Clips the input raster based on the specified envelope.
Method Flip Flips the input raster.
Method GetRasterXFormByIndex Gets the polynomial order and the polynomial coefficients of the indexed transformation.
Method GetRasterXFormCount Gets the number of transformations.
Method GetRasterXFormOrderByIndex Gets the polynomial order of the indexed transformation.
Read-only property IsPixelToMapTransSimple Indicates if the transformation of pixel to map is simple.
Method LeastSquareFit Computes a least squares fit for the input control points.
Method Merge Merges the input rasters into a single dataset.
Method Mirror Mirrors the input raster.
Method Mosaic Mosaics the input rasters into a single dataset.
Method PointsTransform Transforms a set of points based upon the transformation being applied to the input raster.
Method Project Projects the input raster using specified transformation type.
Method ProjectFast Projects the input raster using a single polynomial fit to compute the adjustment between coordinate systems.
Method PutRasterXForm Sets a polynomial transformation to the Raster.
Method Rectify Persists the input raster to a new dataset of the specified format.
Method Register Outputs the current transformation properties to the dataset header or auxilliary file.
Method Resample Resamples the input raster to a new cellsize.
Method ReScale Scales the input raster by the specified x and y scale factors.
Method Reset Resets the input raster to its native coordinate space.
Method Rotate Rotates the input raster around the specified pivot by an angle specified in degrees.
Method Shift Shifts the input raster by deltaX and deltaY map units.
Method TwoPointsAdjust Performs a Hermite transformation on the input raster based upon the 2 input control point pairs.
Method Warp Warps the input raster based upon the input control points using the transformation type specified.
Method WKSPointsMap2PixelTransform Performs the map to pixel transformation.

IRasterGeometryProc2.Clip Method

Clips the input raster based on the specified envelope.

Public Sub Clip ( _
    ByVal ipRectangle As IEnvelope, _
    ByVal pRaster As IRaster _
)
public void Clip (
    IEnvelope ipRectangle,
    IRaster pRaster
);

IRasterGeometryProc2.Flip Method

Flips the input raster.

Public Sub Flip ( _
    ByVal pRaster As IRaster _
)
public void Flip (
    IRaster pRaster
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.Merge Method

Merges the input rasters into a single dataset.

Public Function Merge ( _
    ByVal saveas_name As String, _
    ByVal ipWorkspace As IWorkspace, _
    ByVal outRasterFormat As String, _
    ByVal CellSize As Double, _
    ByVal ipSR As ISpatialReference, _
    ByVal pRaster As IRaster _
) As IRaster
public IRaster Merge (
    string saveas_name,
    IWorkspace ipWorkspace,
    string outRasterFormat,
    double CellSize,
    ISpatialReference ipSR,
    IRaster pRaster
);

IRasterGeometryProc2.Mirror Method

Mirrors the input raster.

Public Sub Mirror ( _
    ByVal pRaster As IRaster _
)
public void Mirror (
    IRaster pRaster
);

IRasterGeometryProc2.Mosaic Method

Mosaics the input rasters into a single dataset.

Public Function Mosaic ( _
    ByVal saveas_name As String, _
    ByVal ipWorkspace As IWorkspace, _
    ByVal outRasterFormat As String, _
    ByVal CellSize As Double, _
    ByVal ipSR As ISpatialReference, _
    ByVal pRaster As IRaster _
) As IRaster
public IRaster Mosaic (
    string saveas_name,
    IWorkspace ipWorkspace,
    string outRasterFormat,
    double CellSize,
    ISpatialReference ipSR,
    IRaster pRaster
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.Project Method

Projects the input raster using specified transformation type.

Public Sub Project ( _
    ByVal ipNewSR As ISpatialReference, _
    ByVal PrjMethodType As esriRasterPrjMethodTypeEnum, _
    ByVal resampleType As rstResamplingTypes, _
    ByVal newCellsize As Double, _
    ByVal pRaster As IRaster _
)
public void Project (
    ISpatialReference ipNewSR,
    esriRasterPrjMethodTypeEnum PrjMethodType,
    rstResamplingTypes resampleType,
    double newCellsize,
    IRaster pRaster
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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"

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.Reset Method

Resets the input raster to its native coordinate space.

Public Sub Reset ( _
    ByVal pRaster As IRaster _
)
public void Reset (
    IRaster pRaster
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.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
);

IRasterGeometryProc2.WKSPointsMap2PixelTransform Method

Performs the map to pixel transformation.

Public Sub WKSPointsMap2PixelTransform ( _
    ByVal pointsCount As Integer, _
    ByRef inPoints As WKSPoint, _
    ByVal isForward As Boolean, _
    ByVal pRaster As IRaster, _
    ByRef outPoints As WKSPoint _
)
public void WKSPointsMap2PixelTransform (
    int pointsCount,
    ref WKSPoint inPoints,
    ref bool isForward,
    ref IRaster pRaster,
    ref WKSPoint outPoints
);

Remarks

The WKSPointsMap2PixelTransform 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.

Classes that implement IRasterGeometryProc2

Classes Description

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.