Interface IRasterGeometryProc3
- Namespace
- ESRI.ArcGIS.DatasourcesRaster
- Assembly
- ESRI.Server.DatasourcesRaster.dll
Provides access to members that allow raster geometry processing.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("DED6B7B3-5158-4F28-A970-86529C5D0696")]
public interface IRasterGeometryProc3
Properties
IsPixelToMapTransSimple[IRaster]
Indicates if the transformation of pixel to map is simple.
bool IsPixelToMapTransSimple[IRaster pRaster] { get; }
Parameters
pRasterIRaster
Property Value
Methods
Clip(IEnvelope, IRaster)
Clips the input raster based on the specified envelope.
void Clip(IEnvelope pRectangle, IRaster pRaster)
Parameters
Flip(IRaster)
Flips the input raster.
void Flip(IRaster pRaster)
Parameters
pRasterIRaster
GetRasterXFormByIndex(IRaster, int, bool, int, ref esriGeoTransTypeEnum, ref object)
Gets the polynomial order and the polynomial coefficients of the indexed transformation.
void GetRasterXFormByIndex(IRaster pRaster, int band, bool forward, int Index, ref esriGeoTransTypeEnum Order, ref object pVar)
Parameters
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.
GetRasterXFormCount(IRaster, int)
Gets the number of transformations.
int GetRasterXFormCount(IRaster pRaster, int band)
Parameters
Returns
Remarks
The GetRasterXFormCount method returns the number of geometric transformations on a specified raster band.
GetRasterXFormOrderByIndex(IRaster, int, int)
Gets the polynomial order of the indexed transformation.
esriGeoTransTypeEnum GetRasterXFormOrderByIndex(IRaster pRaster, int band, int Index)
Parameters
Returns
Remarks
The GetRasterXFormOrderByIndex method returns the order of a specified geometric transformation on a raster band.
LeastSquareFit(IPointCollection, IPointCollection, esriGeoTransTypeEnum, bool, bool)
Computes a least squares fit for the input control points.
object LeastSquareFit(IPointCollection sourceControlPoints, IPointCollection targetControlPoints, esriGeoTransTypeEnum transformType, bool forwardTransformation, bool returnTransformationCoef)
Parameters
sourceControlPointsIPointCollectiontargetControlPointsIPointCollectiontransformTypeesriGeoTransTypeEnumforwardTransformationboolreturnTransformationCoefbool
Returns
Merge(string, IWorkspace, string, double, ISpatialReference, IRaster)
Merges the input rasters into a single dataset.
IRaster Merge(string saveas_name, IWorkspace pWorkspace, string outRasterFormat, double CellSize, ISpatialReference pSR, IRaster pRaster)
Parameters
saveas_namestringpWorkspaceIWorkspaceoutRasterFormatstringCellSizedoublepSRISpatialReferencepRasterIRaster
Returns
Mirror(IRaster)
Mirrors the input raster.
void Mirror(IRaster pRaster)
Parameters
pRasterIRaster
Mosaic(string, IWorkspace, string, double, ISpatialReference, IRaster)
Mosaics the input rasters into a single dataset.
IRaster Mosaic(string saveas_name, IWorkspace pWorkspace, string outRasterFormat, double CellSize, ISpatialReference pSR, IRaster pRaster)
Parameters
saveas_namestringpWorkspaceIWorkspaceoutRasterFormatstringCellSizedoublepSRISpatialReferencepRasterIRaster
Returns
PointsMap2PixelTransform(IPointCollection, bool, IRaster)
Performs the map to pixel transformation.
IPointCollection PointsMap2PixelTransform(IPointCollection pInPoints, bool isForward, IRaster pRaster)
Parameters
pInPointsIPointCollectionisForwardboolpRasterIRaster
Returns
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.
PointsTransform(IPointCollection, bool, IRaster)
Transforms a set of points based upon the transformation being applied to the input raster.
IPointCollection PointsTransform(IPointCollection inPoints, bool isForward, IRaster pRaster)
Parameters
inPointsIPointCollectionisForwardboolpRasterIRaster
Returns
Project(ISpatialReference, esriRasterPrjMethodTypeEnum, rstResamplingTypes, double, IRaster)
Projects the input raster using specified transformation type.
void Project(ISpatialReference pNewSR, esriRasterPrjMethodTypeEnum PrjMethodType, rstResamplingTypes resampleType, double newCellsize, IRaster pRaster)
Parameters
pNewSRISpatialReferencePrjMethodTypeesriRasterPrjMethodTypeEnumresampleTyperstResamplingTypesnewCellsizedoublepRasterIRaster
ProjectFast(ISpatialReference, rstResamplingTypes, ref object, IRaster)
Projects the input raster using a single polynomial fit to compute the adjustment between coordinate systems.
void ProjectFast(ISpatialReference pNewSR, rstResamplingTypes resampleType, ref object CellSize, IRaster pRaster)
Parameters
pNewSRISpatialReferenceresampleTyperstResamplingTypesCellSizeobjectpRasterIRaster
PutRasterXForm(IRaster, bool, esriGeoTransTypeEnum, ref object)
Sets a polynomial transformation to the Raster.
void PutRasterXForm(IRaster pRaster, bool clean, esriGeoTransTypeEnum Order, ref object pVar)
Parameters
pRasterIRastercleanboolOrderesriGeoTransTypeEnumpVarobject
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.
ReScale(double, double, IRaster)
Scales the input raster by the specified x and y scale factors.
void ReScale(double xScale, double yScale, IRaster pRaster)
Parameters
Rectify(string, string, IRaster)
Persists the input raster to a new dataset of the specified format.
void Rectify(string saveas_name, string Format, IRaster pRaster)
Parameters
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" |
Register(IRaster)
Outputs the current transformation properties to the dataset header or auxilliary file.
void Register(IRaster pRaster)
Parameters
pRasterIRaster
Resample(rstResamplingTypes, double, IRaster)
Resamples the input raster to a new cellsize.
void Resample(rstResamplingTypes resampleType, double newCellsize, IRaster pRaster)
Parameters
resampleTyperstResamplingTypesnewCellsizedoublepRasterIRaster
Reset(IRaster)
Resets the input raster to its native coordinate space.
void Reset(IRaster pRaster)
Parameters
pRasterIRaster
Rotate(IPoint, double, IRaster)
Rotates the input raster around the specified pivot by an angle specified in degrees.
void Rotate(IPoint ipPivotPoint, double rotateAngle, IRaster pRaster)
Parameters
Shift(double, double, IRaster)
Shifts the input raster by deltaX and deltaY map units.
void Shift(double deltaX, double deltaY, IRaster pRaster)
Parameters
TwoPointsAdjust(IPointCollection, IPointCollection, IRaster)
Performs a Hermite transformation on the input raster based upon the 2 input control point pairs.
void TwoPointsAdjust(IPointCollection sourceControlPoints, IPointCollection targetControlPoints, IRaster pRaster)
Parameters
sourceControlPointsIPointCollectiontargetControlPointsIPointCollectionpRasterIRaster
Warp(IPointCollection, IPointCollection, esriGeoTransTypeEnum, IRaster)
Warps the input raster based upon the input control points using the transformation type specified.
void Warp(IPointCollection sourceControlPoints, IPointCollection targetControlPoints, esriGeoTransTypeEnum transformType, IRaster pRaster)
Parameters
sourceControlPointsIPointCollectiontargetControlPointsIPointCollectiontransformTypeesriGeoTransTypeEnumpRasterIRaster
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.