org.geotools.referencing.operation.projection
Class MapProjection.AbstractProvider

Object
  extended by Formattable
      extended by AbstractIdentifiedObject
          extended by DefaultOperationMethod
              extended by MathTransformProvider
                  extended by MapProjection.AbstractProvider
All Implemented Interfaces:
Serializable, IdentifiedObject, OperationMethod
Direct Known Subclasses:
AlbersEqualArea.Provider, CassiniSoldner.Provider, EckertIV.Provider, EquidistantConic.Provider, EquidistantCylindrical.Provider, EquidistantCylindrical.SphericalProvider, Krovak.Provider, LambertAzimuthalEqualArea.Provider, LambertConformal1SP.Provider, LambertConformal2SP.Provider, LambertConformalBelgium.Provider, Mercator1SP.Provider, Mercator2SP.Provider, MercatorPseudoProvider, Mollweide.MollweideProvider, Mollweide.WagnerIVProvider, Mollweide.WagnerVProvider, NewZealandMapGrid.Provider, ObliqueMercator.Provider, Orthographic.Provider, PlateCarree.Provider, Polyconic.Provider, Robinson.Provider, Stereographic.Provider, TransverseMercator.Provider, WinkelTripel.AitoffProvider, WinkelTripel.WinkelProvider, WorldVanDerGrintenI.Provider
Enclosing class:
MapProjection

public abstract static class MapProjection.AbstractProvider
extends MathTransformProvider

The base provider for MapProjections.

Author:
Martin Desruisseaux (PMO, IRD)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class MathTransformProvider
MathTransformProvider.Delegate
 
Field Summary
static ParameterDescriptor CENTRAL_MERIDIAN
          The operation parameter descriptor for the central meridian parameter value.
static ParameterDescriptor FALSE_EASTING
          The operation parameter descriptor for the falseEasting parameter value.
static ParameterDescriptor FALSE_NORTHING
          The operation parameter descriptor for the falseNorthing parameter value.
static ParameterDescriptor LATITUDE_OF_ORIGIN
          The operation parameter descriptor for the latitude of origin parameter value.
static ParameterDescriptor SCALE_FACTOR
          The operation parameter descriptor for the scaleFactor parameter value.
static ParameterDescriptor SEMI_MAJOR
          The operation parameter descriptor for the semi major parameter value.
static ParameterDescriptor SEMI_MINOR
          The operation parameter descriptor for the semi minor parameter value.
static ParameterDescriptor STANDARD_PARALLEL_1
          The operation parameter descriptor for the standard parallel 1 parameter value.
static ParameterDescriptor STANDARD_PARALLEL_2
          The operation parameter descriptor for the standard parallel 2 parameter value.
 
Fields inherited from class DefaultOperationMethod
sourceDimensions, targetDimensions
 
Fields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
 
Fields inherited from class Formattable
SINGLE_LINE
 
Fields inherited from interface OperationMethod
FORMULA_KEY
 
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
MapProjection.AbstractProvider(ParameterDescriptorGroup parameters)
          Constructs a math transform provider from a set of parameters.
 
Method Summary
protected static double doubleValue(ParameterDescriptor param, ParameterValueGroup group)
          Returns the parameter value for the specified operation parameter in standard units.
 Class<? extends Projection> getOperationType()
          Returns the operation type for this map projection.
 
Methods inherited from class MathTransformProvider
createDescriptor, createDescriptorGroup, createMathTransform, createOptionalDescriptor, doubleValue, ensureValidValues, formatWKT, getParameter, intValue, stringValue, toMap, value
 
Methods inherited from class DefaultOperationMethod
checkDimensions, equals, getFormula, getParameters, getSourceDimensions, getTargetDimensions, hashCode
 
Methods inherited from class AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
 
Methods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Field Detail

SEMI_MAJOR

public static final ParameterDescriptor SEMI_MAJOR
The operation parameter descriptor for the semi major parameter value. Valid values range is from 0 to infinity. This parameter is mandatory.


SEMI_MINOR

public static final ParameterDescriptor SEMI_MINOR
The operation parameter descriptor for the semi minor parameter value. Valid values range is from 0 to infinity. This parameter is mandatory.


CENTRAL_MERIDIAN

public static final ParameterDescriptor CENTRAL_MERIDIAN
The operation parameter descriptor for the central meridian parameter value. Valid values range is from -180 to 180°. Default value is 0.


LATITUDE_OF_ORIGIN

public static final ParameterDescriptor LATITUDE_OF_ORIGIN
The operation parameter descriptor for the latitude of origin parameter value. Valid values range is from -90 to 90°. Default value is 0.


STANDARD_PARALLEL_1

public static final ParameterDescriptor STANDARD_PARALLEL_1
The operation parameter descriptor for the standard parallel 1 parameter value. Valid values range is from -90 to 90°. Default value is 0.


STANDARD_PARALLEL_2

public static final ParameterDescriptor STANDARD_PARALLEL_2
The operation parameter descriptor for the standard parallel 2 parameter value. Valid values range is from -90 to 90°. Default value is 0.


SCALE_FACTOR

public static final ParameterDescriptor SCALE_FACTOR
The operation parameter descriptor for the scaleFactor parameter value. Valid values range is from 0 to infinity. Default value is 1.


FALSE_EASTING

public static final ParameterDescriptor FALSE_EASTING
The operation parameter descriptor for the falseEasting parameter value. Valid values range is unrestricted. Default value is 0.


FALSE_NORTHING

public static final ParameterDescriptor FALSE_NORTHING
The operation parameter descriptor for the falseNorthing parameter value. Valid values range is unrestricted. Default value is 0.

Constructor Detail

MapProjection.AbstractProvider

public MapProjection.AbstractProvider(ParameterDescriptorGroup parameters)
Constructs a math transform provider from a set of parameters. The provider identifiers will be the same than the parameter ones.

Parameters:
parameters - The set of parameters (never null).
Method Detail

getOperationType

public Class<? extends Projection> getOperationType()
Returns the operation type for this map projection.

Overrides:
getOperationType in class MathTransformProvider
Returns:
The GeoAPI interface implemented by this operation.

doubleValue

protected static double doubleValue(ParameterDescriptor param,
                                    ParameterValueGroup group)
                             throws ParameterNotFoundException
Returns the parameter value for the specified operation parameter in standard units. Values are automatically converted into the standard units specified by the supplied param argument, except degrees which are converted to radians. This conversion is performed because the radians units are standard for all internal computations in the map projection package. For example they are the standard units for latitudeOfOrigin and centralMeridian fields in the MapProjection class.

Parameters:
param - The parameter to look for.
group - The parameter value group to search into.
Returns:
The requested parameter value.
Throws:
ParameterNotFoundException - if the parameter is not found.


Copyright © 1996-2014 Geotools. All Rights Reserved.