How to create an ApproximationXform


Summary
This example shows how to create an ApproximationXform class. An ApproximationXform object can be used to approximate a geodata transformation that is computationally expensive to improve the transformation speed.

Creating an ApproximationXform

Use the following code example in your application:
[Java]
static IApproximationXform createApproximateXform(IGeodataXform xform)throws
    Exception{
    //create an approximation of xform
    IApproximationXform approximateXform = new ApproximationXform();
    approximateXform.setGeodataXformByRef(xform);

    //define the approximation parameters
    IGeodataXformApproximation geodataXformApproximation = 
        (IGeodataXformApproximation)approximateXform;
    geodataXformApproximation.setGridSize(32);
    geodataXformApproximation.setApproximation(true);
    geodataXformApproximation.setTolerance(10); //unit is in the input space
    return approximateXform;
}






Development licensing Deployment licensing
ArcGIS for Desktop Advanced
ArcGIS for Desktop Advanced ArcGIS for Desktop Standard
ArcGIS for Desktop Standard ArcGIS for Desktop Basic
ArcGIS for Desktop Basic Engine
Engine Developer Kit