org.geotools.referencing.operation.transform
Class NZMGTransform.Provider
java.lang.Object
org.geotools.referencing.wkt.Formattable
org.geotools.referencing.AbstractIdentifiedObject
org.geotools.referencing.operation.DefaultOperationMethod
org.geotools.referencing.operation.MathTransformProvider
org.geotools.referencing.operation.transform.NZMGTransform.Provider
- All Implemented Interfaces:
- org.opengis.referencing.IdentifiedObject, org.opengis.referencing.operation.OperationMethod, java.io.Serializable
- Enclosing class:
- NZMGTransform
- public static class NZMGTransform.Provider
- extends MathTransformProvider
The provider for NZMGTransform
. This provider will construct
transforms from to
coordinate reference systems.
- See Also:
- Serialized Form
Field Summary |
static org.opengis.parameter.ParameterDescriptorGroup |
PARAMETERS
|
Fields inherited from interface org.opengis.referencing.operation.OperationMethod |
FORMULA_KEY |
Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Method Summary |
protected org.opengis.referencing.operation.MathTransform |
createMathTransform(org.opengis.parameter.ParameterValueGroup values)
Creates a math transform from the specified group of parameter values.
|
Methods inherited from class org.geotools.referencing.AbstractIdentifiedObject |
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.IdentifiedObject |
getAlias, getIdentifiers, getName, getRemarks, toWKT |
PARAMETERS
public static final org.opengis.parameter.ParameterDescriptorGroup PARAMETERS
NZMGTransform.Provider
public NZMGTransform.Provider()
createMathTransform
protected org.opengis.referencing.operation.MathTransform createMathTransform(org.opengis.parameter.ParameterValueGroup values)
throws org.opengis.parameter.InvalidParameterNameException,
org.opengis.parameter.ParameterNotFoundException,
org.opengis.parameter.InvalidParameterValueException,
org.opengis.referencing.FactoryException
- Description copied from class:
MathTransformProvider
- Creates a math transform from the specified group of parameter values.
Subclasses can implements this method as in the example below:
double semiMajor = values.parameter("semi_major").doubleValue(SI.METER);
double semiMinor = values.parameter("semi_minor").doubleValue(SI.METER);
// etc...
return new MyTransform(semiMajor, semiMinor, ...);
- Specified by:
createMathTransform
in class MathTransformProvider
- Parameters:
values
- The group of parameter values.
- Returns:
- The created math transform.
- Throws:
org.opengis.parameter.InvalidParameterValueException
- if a parameter has an invalid value.
org.opengis.referencing.FactoryException
- if the math transform can't be created for some other reason
(for example a required file was not found).
org.opengis.parameter.ParameterNotFoundException
- if a required parameter was not found.
org.opengis.parameter.InvalidParameterNameException
- if the values contains an unknow parameter.- See Also:
MathTransformProvider.Delegate
Copyright © GeoTools. All Rights Reserved.