Package org.apache.sis.parameter
Class MapProjectionParameters
java.lang.Object
org.apache.sis.parameter.Parameters
org.apache.sis.parameter.DefaultParameterValueGroup
org.apache.sis.parameter.MapProjectionParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,LenientComparable
,org.opengis.parameter.GeneralParameterValue
,org.opengis.parameter.ParameterValueGroup
Map projection parameters, with special processing for alternative ways to express the ellipsoid axis length
and the standard parallels. See
MapProjectionDescriptor
for more information about those non-standard
parameters.- Since:
- 0.6
- Version:
- 0.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
The earth radius parameter.(package private) static final class
The inverse flattening parameter.(package private) static final class
Whether the inverse flattening parameter is definitive.(package private) static final class
The standard parallels parameter as an array ofdouble
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.opengis.parameter.ParameterValue<Double>
TheMapProjectionParameters.EarthRadius
parameter instance, created when first needed.TheMapProjectionParameters.InverseFlattening
parameter instance, created when first needed.private org.opengis.parameter.ParameterValue<Boolean>
TheMapProjectionParameters.IsIvfDefinitive
parameter instance, created when first needed.private static final long
For cross-version compatibility.private org.opengis.parameter.ParameterValue<double[]>
TheMapProjectionParameters.StandardParallel
parameter instance, created when first needed. -
Constructor Summary
ConstructorsConstructorDescriptionMapProjectionParameters
(MapProjectionDescriptor descriptor) Creates a new parameter value group. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a deep copy of this group of parameter values.Returns theMapProjectionParameters.InverseFlattening
instance, creating it when first needed.(package private) boolean
Returnstrue
since theparameterIfExist(String)
method below is compatible withDefaultParameterValueGroup.parameter(String)
.(package private) org.opengis.parameter.ParameterValue<?>
parameterIfExist
(String name) Returns the value in this group for the specified name.Methods inherited from class org.apache.sis.parameter.DefaultParameterValueGroup
addGroup, equals, equals, equals, getDescriptor, getOrCreate, getParameter, groups, hashCode, parameter, values
Methods inherited from class org.apache.sis.parameter.Parameters
booleanValue, cast, cast, castOrWrap, copy, doubleValue, doubleValue, doubleValueList, getDescriptors, getMandatoryValue, getMemberName, getValue, getValueDomain, intValue, intValueList, isUnmodifiable, print, stringValue, toString, unmodifiable, unmodifiable
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
earthRadius
TheMapProjectionParameters.EarthRadius
parameter instance, created when first needed. This is an "invisible" parameter, never shown in theDefaultParameterValueGroup.values()
list. -
inverseFlattening
TheMapProjectionParameters.InverseFlattening
parameter instance, created when first needed. This is an "invisible" parameter, never shown in theDefaultParameterValueGroup.values()
list. -
standardParallel
private transient org.opengis.parameter.ParameterValue<double[]> standardParallelTheMapProjectionParameters.StandardParallel
parameter instance, created when first needed. This is an "invisible" parameter, never shown in theDefaultParameterValueGroup.values()
list. -
isIvfDefinitive
TheMapProjectionParameters.IsIvfDefinitive
parameter instance, created when first needed. This is an "invisible" parameter, never shown in theDefaultParameterValueGroup.values()
list.
-
-
Constructor Details
-
MapProjectionParameters
MapProjectionParameters(MapProjectionDescriptor descriptor) Creates a new parameter value group. An instance ofMapProjectionDescriptor
is mandatory, because some method in this class will need to cast the descriptor.
-
-
Method Details
-
isKnownImplementation
boolean isKnownImplementation()Returnstrue
since theparameterIfExist(String)
method below is compatible withDefaultParameterValueGroup.parameter(String)
. Note that we would need to revisit this condition if this class was no longer final.- Overrides:
isKnownImplementation
in classDefaultParameterValueGroup
-
parameterIfExist
org.opengis.parameter.ParameterValue<?> parameterIfExist(String name) throws org.opengis.parameter.ParameterNotFoundException Returns the value in this group for the specified name. If the given name is one of the "invisible" parameters, returns a dynamic parameter view without adding it to the list of real parameter values.- Overrides:
parameterIfExist
in classDefaultParameterValueGroup
- Parameters:
name
- the case insensitive name of the parameter to search for.- Returns:
- the parameter value for the given name.
- Throws:
org.opengis.parameter.ParameterNotFoundException
- if there is no parameter value for the given name.- See Also:
-
getInverseFlattening
Returns theMapProjectionParameters.InverseFlattening
instance, creating it when first needed. This parameter is used also byMapProjectionParameters.IsIvfDefinitive
. -
clone
Returns a deep copy of this group of parameter values. Included parameter values and subgroups are cloned recursively.- Specified by:
clone
in interfaceorg.opengis.parameter.GeneralParameterValue
- Specified by:
clone
in interfaceorg.opengis.parameter.ParameterValueGroup
- Overrides:
clone
in classDefaultParameterValueGroup
- Returns:
- a copy of this group of parameter values.
- See Also:
-