Class MapProjection.AbstractProvider
Object
Formattable
AbstractIdentifiedObject
DefaultOperationMethod
MathTransformProvider
AbstractProvider
- All Implemented Interfaces:
Serializable,IdentifiedObject,OperationMethod,PROJFormattable
- Direct Known Subclasses:
AlbersEqualArea.Provider,AzimuthalEquidistant.Provider,CassiniSoldner.Provider,CylindricalEqualArea.BehrmannProvider,CylindricalEqualArea.LambertCylindricalEqualAreaProvider,CylindricalEqualArea.Provider,EckertIV.Provider,EqualArea.Provider,EquidistantConic.Provider,EquidistantCylindrical.Provider,EquidistantCylindrical.SphericalProvider,GeneralOblique.Provider,GeostationarySatellite.Provider,Gnomonic.Provider,Homolosine.Provider,Krovak.NorthProvider,Krovak.Provider,LambertAzimuthalEqualArea.Provider,LambertConformal1SP.Provider,LambertConformal2SP.Provider,LambertConformalBelgium.Provider,LambertConformalEsriProvider,Mercator1SP.Provider,Mercator2SP.Provider,MercatorPseudoProvider,MeteosatSG.Provider,Mollweide.MollweideProvider,Mollweide.WagnerIVProvider,Mollweide.WagnerVProvider,NewZealandMapGrid.Provider,ObliqueMercator.Provider,Orthographic.Provider,PlateCarree.Provider,Polyconic.Provider,Robinson.Provider,RotatedPole.Provider,Sinusoidal.Provider,Stereographic.Provider,TransverseMercator.Provider,WinkelTripel.AitoffProvider,WinkelTripel.WinkelProvider,WorldVanDerGrintenI.Provider
- Enclosing class:
- MapProjection
The base provider for
MapProjections.- Author:
- Martin Desruisseaux (PMO, IRD)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class MathTransformProvider
MathTransformProvider.Delegate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParameterDescriptor<Double>The operation parameter descriptor for the central meridian parameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for thefalseEastingparameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for thefalseNorthingparameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for the latitude of center parameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for the latitude of origin parameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for the longitude of center parameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for thescaleFactorparameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for the semi major parameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for the semi minor parameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for the standard parallel 1 parameter value.static final ParameterDescriptor<Double>The operation parameter descriptor for the standard parallel 2 parameter value.Fields inherited from class DefaultOperationMethod
sourceDimensions, targetDimensionsFields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATORFields inherited from class Formattable
SINGLE_LINEFields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface OperationMethod
FORMULA_KEY -
Constructor Summary
ConstructorsConstructorDescriptionAbstractProvider(ParameterDescriptorGroup parameters) Constructs a math transform provider from a set of parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected static doubledoubleValue(ParameterDescriptor param, ParameterValueGroup group) Returns the parameter value for the specified operation parameter in standard units.Class<? extends Projection>Returns the operation type for this map projection.Methods inherited from class MathTransformProvider
createDescriptor, createDescriptorGroup, createMathTransform, createOptionalDescriptor, ensureValidValues, formatWKT, getParameter, intValue, stringValue, toMap, valueMethods inherited from class DefaultOperationMethod
checkDimensions, equals, formatPROJ, getFormula, getParameters, getSourceDimensions, getTargetDimensions, hashCodeMethods 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, nameMatchesMethods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKTMethods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
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
The operation parameter descriptor for the semi minor parameter value. Valid values range is from 0 to infinity. This parameter is mandatory. -
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
The operation parameter descriptor for the latitude of origin parameter value. Valid values range is from -90 to 90°. Default value is 0. -
LONGITUDE_OF_CENTRE
The operation parameter descriptor for the longitude of center parameter value. Valid values range is from -180 to 180°. Default value is 0. -
LATITUDE_OF_CENTRE
The operation parameter descriptor for the latitude of center parameter value. Valid values range is from -90 to 90°. Default value is 0. -
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
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
The operation parameter descriptor for thescaleFactorparameter value. Valid values range is from 0 to infinity. Default value is 1. -
FALSE_EASTING
The operation parameter descriptor for thefalseEastingparameter value. Valid values range is unrestricted. Default value is 0. -
FALSE_NORTHING
The operation parameter descriptor for thefalseNorthingparameter value. Valid values range is unrestricted. Default value is 0.
-
-
Constructor Details
-
AbstractProvider
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 (nevernull).
-
-
Method Details
-
getOperationType
Returns the operation type for this map projection.- Overrides:
getOperationTypein classMathTransformProvider- 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 suppliedparamargument, exceptdegreeswhich are converted toradians. 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 forlatitudeOfOriginandcentralMeridianfields in theMapProjectionclass.- 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.
-