How to orthorectify an image

This article reads a rational polynomial coefficient (RPC) image and performs orthorectification using a digital elevation model (DEM).

Orthorectifying an image

See the following code example:
static void orthorectifyImage(IRasterDataset2 rpcDataset, IRasterDataset demDataset)
    throws Exception{
    //rpcDataset: represents a raster dastaset that has RPC information
    //demDataset: represents a raster dataset opened from a DEM of the same area

    //Get the RPCXform form the raster dataset
    IRaster2 raster = new IRaster2Proxy(rpcDataset.createFullRaster());
    IGeodataXform rpcXform = raster.getGeodataXform();

    //set DEM etc.
    ISensorXform sensor = new ISensorXformProxy(rpcXform);

    //save the result
    ISaveAs saveas = new ISaveAsProxy(raster);
    saveas.saveAs("c:/temp/orthorectify_output.img", null, "IMAGINE Image");

Development licensingDeployment licensing
ArcGIS for Desktop AdvancedArcGIS for Desktop Advanced
ArcGIS for Desktop StandardArcGIS for Desktop Standard
ArcGIS for Desktop BasicArcGIS for Desktop Basic
Engine Developer KitEngine