GeographicTransformation.withSteps constructor
- List<
GeographicTransformationStep> steps
Create a multi-step transformation from one or more GeographicTransformationStep instances.
Use this when the multi-step transformation is known in advance. The output of each step should match the input of the following step. Then, you can use the new multi-step transformation where you would use a single-step transformation.
Parameters:
steps
— A List containing GeographicTransformationStep instances.
Implementation
factory GeographicTransformation.withSteps(
List<GeographicTransformationStep> steps,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreSteps = steps.toArray(
valueType: _ElementType.geographicTransformationStep,
);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeographicTransformation_createWithSteps(
coreSteps._handle,
errorHandler,
);
});
final GeographicTransformation object =
GeographicTransformation._withHandle(handle);
object._steps.value.setCache(steps);
return object;
}