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 |
|---|---|
| ArcInfo | |
| ArcInfo | ArcEditor |
| ArcEditor | ArcView |
| ArcView | Engine Runtime |
| Engine Developer Kit |