This document is archived and information here might be outdated.  Recommended version.


ITransformationOp.Warp Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoAnalyst)  

ITransformationOp.Warp Method

Transforms a raster along a set of links using a polynomial transformation.

[Visual Basic .NET]
Public Function Warp ( _
    ByVal GeoDataset As IGeoDataset, _
    ByVal sourceControlPoints As IPointCollection, _
    ByVal targetControlPoints As IPointCollection, _
    ByVal transformType As esriGeoTransTypeEnum, _
    ByVal resampleType As esriGeoAnalysisResampleEnum _
) As IGeoDataset
[C#]
public IGeoDataset Warp (
    IGeoDataset GeoDataset,
    IPointCollection sourceControlPoints,
    IPointCollection targetControlPoints,
    esriGeoTransTypeEnum transformType,
    esriGeoAnalysisResampleEnum resampleType
);
[C++]
HRESULT Warp(
  IGeoDataset* GeoDataset,
  IPointCollection* sourceControlPoints,
  IPointCollection* targetControlPoints,
  esriGeoTransTypeEnum transformType,
  esriGeoAnalysisResampleEnum resampleType,
  IGeoDataset** outGeoDataset
);
[C++]

Parameters GeoDataset [in]
GeoDataset is a parameter of type IGeoDataset sourceControlPoints [in]
sourceControlPoints is a parameter of type IPointCollection targetControlPoints [in]
targetControlPoints is a parameter of type IPointCollection transformType [in]
transformType is a parameter of type esriGeoTransTypeEnum resampleType [in]
resampleType is a parameter of type esriGeoAnalysisResampleEnum outGeoDataset [out, retval]
outGeoDataset is a parameter of type IGeoDataset

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

GeoDataset

an input Raster, RasterDataset, RasterBand, or RasterDescriptor

sourceControlPoints

The source points are the "from" coordinates of the links.

targetControlPoints

The target points are the "to" coordinates of the links.

transformType

an esriGeoTransTypeEnum specifying the geometric transformation type.

There are three types, specifying the order of the polynomial. Higher order values will fit a more complex surface.

esriGeoTransPolyOrder1 - A first order polynomial fits a flat plane to the input points.  This is default.

esriGeoTransPolyOrder2  - Transformation is a second order polynomial

esriGeoTransPolyOrder3 - Transformation is a third order polynomial.

resampleType

an esriGeoAnalysisResampleEnum specifing the resampling algorithm to be used when sampling a Raster

can be of type:

esriGeoAnalysisResampleBilinear - bilinear interpolation. This is Default.

esriGeoAnalysisResampleCubic - cubic convolution.

esriGeoAnalysisResampleNearest - nearest neighbor assignment.

 

See Also

ITransformationOp Interface