/** * Returns the operation method for the last call to a {@code create} method in the currently * running thread. This method may be invoked after any of the following methods: * * <p> * * <ul> * <li>{@link #createParameterizedTransform} * <li>{@link #createBaseToDerived} * </ul> * * @return The operation method for the last call to a {@code create} method, or {@code null} if * none. * @see MathTransformFactory#getLastMethodUsed * @deprecated Moved to the {@link MathTransformFactory} interface. */ @Deprecated public OperationMethod getLastUsedMethod() { return getMathTransformFactory().getLastMethodUsed(); }
/** * Creates a coordinate operation from a set of parameters. The {@linkplain OperationMethod * operation method} is inferred automatically, if possible. * * @param name The identifier for the operation to be created. * @param sourceCRS The source coordinate reference system. * @param targetCRS The target coordinate reference system. * @param parameters The parameters. * @return The conversion or transformation. * @throws FactoryException if the operation can't be created. */ protected CoordinateOperation createFromParameters( final ReferenceIdentifier name, final CoordinateReferenceSystem sourceCRS, final CoordinateReferenceSystem targetCRS, final ParameterValueGroup parameters) throws FactoryException { final Map<String, ?> properties = getProperties(name); final MathTransform transform = mtFactory.createParameterizedTransform(parameters); final OperationMethod method = mtFactory.getLastMethodUsed(); return createFromMathTransform( properties, sourceCRS, targetCRS, transform, method, Operation.class); }
OperationMethod method = conversionFromBase.getMethod(); if (!(method instanceof MathTransformProvider)) { OperationMethod opMethod = mtFactory.getLastMethodUsed(); if (opMethod instanceof MathTransformProvider) { final Map<String, Object> copy = new HashMap<String, Object>(props);
method = mtFactory.getLastMethodUsed(); if (method instanceof MathTransformProvider) { final Map<String, Object> copy = new HashMap<String, Object>(properties);
throw element.parseFailed(exception, null); lastMethod = mtFactory.getLastMethodUsed(); return transform;
OperationMethod method = conversionFromBase.getMethod(); if (!(method instanceof MathTransformProvider)) { OperationMethod opMethod = mtFactory.getLastMethodUsed(); if (opMethod instanceof MathTransformProvider) { final Map<String, Object> copy = new HashMap<String, Object>(props);
throw element.parseFailed(exception); lastMethod = mtFactory.getLastMethodUsed(); return transform;
break; operations.set(recreate(op, sourceCRS, targetCRS, mt, mtFactory.getLastMethodUsed())); return true;
opType = SingleOperation.class; final OperationMethod provider = mtFactory.getLastMethodUsed(); if (provider instanceof DefaultOperationMethod) { // SIS-specific final Class<?> s = ((DefaultOperationMethod) provider).getOperationType();
throw element.parseFailed(exception); lastMethod = mtFactory.getLastMethodUsed(); return transform;
opType = SingleOperation.class; final OperationMethod provider = mtFactory.getLastMethodUsed(); if (provider instanceof DefaultOperationMethod) { // SIS-specific final Class<?> s = ((DefaultOperationMethod) provider).getOperationType();
break; operations.set(recreate(op, sourceCRS, targetCRS, mt, mtFactory.getLastMethodUsed())); return true;
actual[0] = factory.getLastMethodUsed(); } else {
actual[0] = factory.getLastMethodUsed(); } else {