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 classThe earth radius parameter.(package private) static final classThe inverse flattening parameter.(package private) static final classWhether the inverse flattening parameter is definitive.(package private) static final classThe standard parallels parameter as an array ofdouble. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.opengis.parameter.ParameterValue<Double>TheMapProjectionParameters.EarthRadiusparameter instance, created when first needed.TheMapProjectionParameters.InverseFlatteningparameter instance, created when first needed.private org.opengis.parameter.ParameterValue<Boolean>TheMapProjectionParameters.IsIvfDefinitiveparameter instance, created when first needed.private static final longFor cross-version compatibility.private org.opengis.parameter.ParameterValue<double[]>TheMapProjectionParameters.StandardParallelparameter 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.InverseFlatteninginstance, creating it when first needed.(package private) booleanReturnstruesince 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, valuesMethods 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.EarthRadiusparameter instance, created when first needed. This is an "invisible" parameter, never shown in theDefaultParameterValueGroup.values()list. -
inverseFlattening
TheMapProjectionParameters.InverseFlatteningparameter 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.StandardParallelparameter instance, created when first needed. This is an "invisible" parameter, never shown in theDefaultParameterValueGroup.values()list. -
isIvfDefinitive
TheMapProjectionParameters.IsIvfDefinitiveparameter 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 ofMapProjectionDescriptoris mandatory, because some method in this class will need to cast the descriptor.
-
-
Method Details
-
isKnownImplementation
boolean isKnownImplementation()Returnstruesince 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:
isKnownImplementationin 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:
parameterIfExistin 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.InverseFlatteninginstance, 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:
clonein interfaceorg.opengis.parameter.GeneralParameterValue- Specified by:
clonein interfaceorg.opengis.parameter.ParameterValueGroup- Overrides:
clonein classDefaultParameterValueGroup- Returns:
- a copy of this group of parameter values.
- See Also:
-