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
public IGeoDataset Warp (
    IGeoDataset GeoDataset,
    IPointCollection sourceControlPoints,
    IPointCollection targetControlPoints,
    esriGeoTransTypeEnum transformType,
    esriGeoAnalysisResampleEnum resampleType
  IGeoDataset* GeoDataset,
  IPointCollection* sourceControlPoints,
  IPointCollection* targetControlPoints,
  esriGeoTransTypeEnum transformType,
  esriGeoAnalysisResampleEnum resampleType,
  IGeoDataset** outGeoDataset


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.



an input Raster, RasterDataset, RasterBand, or RasterDescriptor


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


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


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.


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