HorizontalVerticalTransformation.withSteps constructor

HorizontalVerticalTransformation.withSteps(
  1. List<HorizontalVerticalTransformationStep> steps
)

Create a multi-step transformation from one or more HorizontalVerticalTransformationStep instances.

Use this constructor to create a horizontal-vertical transformation that has multiple steps. The output SpatialReference of each step should match the input SpatialReference of the following step.

Parameters:

Implementation

factory HorizontalVerticalTransformation.withSteps(
    List<HorizontalVerticalTransformationStep> steps) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreSteps = steps.toArray(
      valueType: _ElementType.horizontalVerticalTransformationStep);
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_HorizontalVerticalTransformation_createWithSteps(
        coreSteps._handle, errorHandler);
  });
  final HorizontalVerticalTransformation object =
      HorizontalVerticalTransformation._withHandle(handle);
  object._steps.value.setCache(steps);
  return object;
}