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


ITransformationOp.Shift Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoAnalyst)  

ITransformationOp.Shift Method

Shifts the coordinates of a raster.

[Visual Basic .NET]
Public Function Shift ( _
    ByVal GeoDataset As IGeoDataset, _
    ByVal xShift As Double, _
    ByVal yShift As Double, _
    ByRef pSnapRasterData As Object _
) As IGeoDataset
[C#]
public IGeoDataset Shift (
    IGeoDataset GeoDataset,
    double xShift,
    double yShift,
    ref object pSnapRasterData
);
[C++]
HRESULT Shift(
  IGeoDataset* GeoDataset,
  double xShift,
  double yShift,
  VARIANT* pSnapRasterData,
  IGeoDataset** outGeoDataset
);
[C++]

Parameters GeoDataset [in]
GeoDataset is a parameter of type IGeoDataset xShift [in] xShift is a parameter of type double yShift [in] yShift is a parameter of type double pSnapRasterData [in] pSnapRasterData is a parameter of type VARIANT 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

xShift

The value to shift the x coordinates by.

yShift

The value to shift the y coordinates by.

pSnapRasterData

The input raster to snap cell alignment to

See Also

ITransformationOp Interface