/** * Work around for RFE #4093999 in Sun's bug database ("Relax constraint on placement of * this()/super() call in constructors"). */ private DefaultConcatenatedOperation( final Map<String, ?> properties, final MathTransform transform, final List<SingleOperation> operations) { super( mergeAccuracy(properties, operations), operations.get(0).getSourceCRS(), operations.get(operations.size() - 1).getTargetCRS(), transform); this.operations = UnmodifiableArrayList.wrap( operations.toArray(new SingleOperation[operations.size()])); }
final CoordinateReferenceSystem targetCRS = op.getTargetCRS(); final MathTransform transform = op.getMathTransform().inverse(); final OperationMethod method = InverseOperationMethod.create(op.getMethod());
final CoordinateReferenceSystem targetCRS = op.getTargetCRS(); final MathTransform transform = op.getMathTransform().inverse(); final OperationMethod method = InverseOperationMethod.create(op.getMethod());
CoordinateReferenceSystem crs; if (Utilities.equalsApproximatively(sourceCRS, crs = operation.getSourceCRS())) sourceCRS = crs; if (Utilities.equalsApproximatively(targetCRS, crs = operation.getTargetCRS())) targetCRS = crs; final MathTransformFactory mtFactory = factorySIS.getMathTransformFactory(); if (mtFactory instanceof DefaultMathTransformFactory) {
CoordinateReferenceSystem crs; if (Utilities.equalsApproximatively(sourceCRS, crs = operation.getSourceCRS())) sourceCRS = crs; if (Utilities.equalsApproximatively(targetCRS, crs = operation.getTargetCRS())) targetCRS = crs; final MathTransformFactory mtFactory = factorySIS.getMathTransformFactory(); if (mtFactory instanceof DefaultMathTransformFactory) {
final CoordinateReferenceSystem targetCRS = last.getTargetCRS(); final CoordinateReferenceSystem sourceCRS = single.getSourceCRS(); if (targetCRS != null && sourceCRS != null) { final CoordinateReferenceSystem targetCRS = object.getTargetCRS(); final CoordinateReferenceSystem firstCRS = first .getSourceCRS(); final CoordinateReferenceSystem lastCRS = last .getTargetCRS(); if (sourceCRS != null && firstCRS != null) { assertSame("ConcatenatedOperation: sourceCRS must be the source " +
assertEpsgNameWithoutIdentifierEqual("NTF to WGS 84 (1)", step2); assertSame("SourceCRS shall be the targetCRS of previous step.", step1.getTargetCRS(), step2.getSourceCRS()); assertEquals("Method 1", "Longitude rotation", step1.getMethod().getName().getCode()); assertEquals("Method 2", "Geocentric translations (" + domain + ')', step2.getMethod().getName().getCode());