firstAffectedOrdinate, operation.getMathTransform(), numTrailingOrdinates)); ArgumentChecks.ensureNonNull("operation", operation); this.operation = operation;
firstAffectedOrdinate, operation.getMathTransform(), numTrailingOrdinates)); ArgumentChecks.ensureNonNull("operation", operation); this.operation = operation;
/** * Invoked by JAXB at unmarshalling time for setting the modified coordinates. */ private void setIndices(final int[] ordinates) { String missing = "sourceCRS"; final CoordinateReferenceSystem sourceCRS = super.getSourceCRS(); if (sourceCRS != null) { missing = "modifiedCoordinate"; if (ordinates != null && ordinates.length != 0) { missing = "coordOperation"; if (operation != null) { for (int i=1; i<ordinates.length; i++) { final int previous = ordinates[i-1]; if (previous < 1 || ordinates[i] != previous + 1) { throw new IllegalArgumentException(Errors.format( Errors.Keys.CanNotAssign_2, missing, Arrays.toString(ordinates))); } } transform = PassThroughTransform.create(ordinates[0] - 1, operation.getMathTransform(), ReferencingUtilities.getDimension(sourceCRS) - ordinates[ordinates.length - 1]); return; } } } throw new IllegalStateException(Errors.format(Errors.Keys.MissingComponentInElement_2, missing, "PassThroughOperation")); } }
/** * Invoked by JAXB at unmarshalling time for setting the modified coordinates. */ private void setIndices(final int[] ordinates) { String missing = "sourceCRS"; final CoordinateReferenceSystem sourceCRS = super.getSourceCRS(); if (sourceCRS != null) { missing = "modifiedCoordinate"; if (ordinates != null && ordinates.length != 0) { missing = "coordOperation"; if (operation != null) { for (int i=1; i<ordinates.length; i++) { final int previous = ordinates[i-1]; if (previous < 1 || ordinates[i] != previous + 1) { throw new IllegalArgumentException(Errors.format( Errors.Keys.CanNotAssign_2, missing, Arrays.toString(ordinates))); } } transform = MathTransforms.passThrough(ordinates[0] - 1, operation.getMathTransform(), ReferencingUtilities.getDimension(sourceCRS) - ordinates[ordinates.length - 1]); return; } } } throw new IllegalStateException(Errors.format(Errors.Keys.MissingComponentInElement_2, missing, "PassThroughOperation")); } }
final Integer opSourceDimension = method.getSourceDimensions(); final Integer opTargetDimension = method.getTargetDimensions(); final MathTransform transform = object.getMathTransform();
final CoordinateReferenceSystem sourceCRS = op.getSourceCRS(); final CoordinateReferenceSystem targetCRS = op.getTargetCRS(); final MathTransform transform = op.getMathTransform().inverse(); final OperationMethod method = InverseOperationMethod.create(op.getMethod()); final Map<String,Object> properties = properties(INVERSE_OPERATION);
final Integer opSourceDimension = method.getSourceDimensions(); final Integer opTargetDimension = method.getTargetDimensions(); final MathTransform transform = object.getMathTransform();
final CoordinateReferenceSystem sourceCRS = op.getSourceCRS(); final CoordinateReferenceSystem targetCRS = op.getTargetCRS(); final MathTransform transform = op.getMathTransform().inverse(); final OperationMethod method = InverseOperationMethod.create(op.getMethod()); final Map<String,Object> properties = properties(INVERSE_OPERATION);
} else { final MathTransform lastMT = last.getMathTransform(); final MathTransform thisMT = single.getMathTransform(); if (lastMT != null && thisMT != null) { assertEquals("ConcatenatedOperation: source dimension of a single operation " + final MathTransform firstMT = first.getMathTransform(); final MathTransform lastMT = last .getMathTransform(); if (firstMT != null) { assertEquals("ConcatenatedOperation: source dimension must match " +