Creating an AdjustXform for georeferencing images
Use the following code example in your application :
[Java]
static IAdjustXform createAdjustXform(IPointCollection sourcePoints,
IPointCollection targetPoints, ISpatialReference sr)throws Exception{
//this example creates an AdjustXform
IAdjustXform adjustXF = new AdjustXform();
//set control points and the polynomial order used
adjustXF.defineFromControlPoints(sourcePoints, targetPoints);
adjustXF.setPolynomialApproximation(2);
//using interpolation to do the adjustment
adjustXF.setNaturalNeighbor(true);
//you can also define the spatial reference of the xform
adjustXF.setSpatialReferenceByRef(sr);
return adjustXF;
}
See Also:
How to perform geodata transformation on a raster| Development licensing | Deployment licensing |
|---|---|
| ArcGIS for Desktop Advanced | |
| ArcGIS for Desktop Standard | ArcGIS for Desktop Advanced |
| ArcGIS for Desktop Basic | ArcGIS for Desktop Standard |
| Engine Developer Kit | ArcGIS for Desktop Basic |
| Engine |