DefaultMathTransformFactory changes for revisions 7844:7857

Most of the changes are only reflecting changes in GeoAPI interface names. Furthermore this method has been rewritten since the return type is different in current GeoAPI interface.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r7844:7857 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/operation/DefaultMathTransformFactory.java
Revision 7844Revision 7857
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.operation.Matrix;
import org.opengis.referencing.operation.MathTransform;
import org.opengis.referencing.operation.MathTransform2D;
import org.opengis.referencing.NoSuchIdentifierException;
import org.opengis.parameter.GeneralOperationParameter;
import org.opengis.parameter.GeneralParameterValue;

// Geotools dependencies
import org.geotools.referencing.Identifier;         // For javadoc
import org.geotools.referencing.wkt.AbstractParser;
import org.geotools.referencing.operation.GeneralMatrix;
import org.geotools.referencing.operation.transform.ProjectiveTransform;
import org.geotools.referencing.operation.transform.PassThroughTransform;
import org.geotools.referencing.operation.transform.ConcatenatedTransform;
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.operation.Matrix;
import org.opengis.referencing.operation.MathTransform;
import org.opengis.referencing.NoSuchIdentifierException;
import org.opengis.parameter.GeneralParameterValue;
import org.opengis.parameter.ParameterDescriptorGroup;
import org.opengis.parameter.ParameterValueGroup;

// Geotools dependencies
import org.geotools.parameter.Parameters;
import org.geotools.referencing.Identifier;         // For javadoc
import org.geotools.referencing.wkt.AbstractParser;
import org.geotools.referencing.operation.transform.ProjectiveTransform;
import org.geotools.referencing.operation.transform.PassThroughTransform;
import org.geotools.referencing.operation.transform.ConcatenatedTransform;
public GeneralParameterValue[] getDefaultParameters(final String identifier)
        throws NoSuchIdentifierException
{
    final GeneralOperationParameter[] parameters = getProvider(identifier).getParameters();
    final GeneralParameterValue[] values = new GeneralParameterValue[parameters.length];
    for (int i=0; i<values.length; i++) {
        values[i] = parameters[i].createValue();
    }
    return values;
}

/**
 * Creates a transform from an {@linkplain org.geotools.referencing.operation.OperationMethod
public GeneralParameterValue[] getDefaultParameters(final String identifier)
        throws NoSuchIdentifierException
{
    ParameterDescriptorGroup type = getProvider(identifier).getParameters();
    ParameterValueGroup group = (ParameterValueGroup) type.createValue();

    return Parameters.array( group );
    }

/**
 * Creates a transform from an {@linkplain org.geotools.referencing.operation.OperationMethod