Package org.apache.sis.parameter
Class MapProjectionParameters.StandardParallel
java.lang.Object
org.apache.sis.io.wkt.FormattableObject
org.apache.sis.parameter.DefaultParameterValue<double[]>
org.apache.sis.parameter.MapProjectionParameters.StandardParallel
- All Implemented Interfaces:
Serializable
,Cloneable
,LenientComparable
,org.opengis.parameter.GeneralParameterValue
,org.opengis.parameter.ParameterValue<double[]>
- Enclosing class:
MapProjectionParameters
The standard parallels parameter as an array of
double
. This parameter is computed automatically
from the "standard_parallel_1"
and "standard_parallel_1"
standard parameters. When this
non-standard parameter is explicitly set, the array elements are given to the above-cited standard parameters.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final org.opengis.parameter.ParameterDescriptor
<double[]> All names known to Apache SIS for the standard parallels parameter, as an array of 1 or 2 elements.private static final long
For cross-version compatibility.private final org.opengis.parameter.ParameterValue
<?> The parameters for the standard parallels.private final org.opengis.parameter.ParameterValue
<?> The parameters for the standard parallels.Fields inherited from class org.apache.sis.parameter.DefaultParameterValue
unit, value
-
Constructor Summary
ConstructorsConstructorDescriptionStandardParallel
(org.opengis.parameter.ParameterValue<?> standardParallel1, org.opengis.parameter.ParameterValue<?> standardParallel2) Creates a new parameter. -
Method Summary
Methods inherited from class org.apache.sis.parameter.DefaultParameterValue
booleanValue, clone, doubleValue, doubleValue, doubleValueList, doubleValueList, equals, equals, formatTo, getDescriptor, getUnit, hashCode, intValue, intValueList, setDescriptor, setValue, setValue, setValue, setValue, setValue, setValue, stringValue, unmodifiable, validate, valueFile
Methods inherited from class org.apache.sis.io.wkt.FormattableObject
print, toString, toString, toWKT
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility. Actually instances of this class are not expected to be serialized, but we try to be a bit safer here.- See Also:
-
DESCRIPTOR
static final org.opengis.parameter.ParameterDescriptor<double[]> DESCRIPTORAll names known to Apache SIS for the standard parallels parameter, as an array of 1 or 2 elements. This is used in some netCDF files instead of "standard_parallel_1" and "standard_parallel_2". This is not a standard parameter. -
standardParallel1
private final org.opengis.parameter.ParameterValue<?> standardParallel1The parameters for the standard parallels. -
standardParallel2
private final org.opengis.parameter.ParameterValue<?> standardParallel2The parameters for the standard parallels.
-
-
Constructor Details
-
StandardParallel
StandardParallel(org.opengis.parameter.ParameterValue<?> standardParallel1, org.opengis.parameter.ParameterValue<?> standardParallel2) Creates a new parameter.
-
-
Method Details
-
setValue
Invoked when a new parameter value is set. This method assign the array elements to"standard_parallel_1"
and"standard_parallel_1"
parameters.- Overrides:
setValue
in classDefaultParameterValue<double[]>
- Parameters:
value
- the parameter value, ornull
to restore the default.unit
- the unit associated to the new parameter value, ornull
.- See Also:
-
getValue
public double[] getValue()Invoked when the parameter value is requested. Unconditionally computes the array from the"standard_parallel_1"
and"standard_parallel_1"
parameters.- Specified by:
getValue
in interfaceorg.opengis.parameter.ParameterValue<double[]>
- Overrides:
getValue
in classDefaultParameterValue<double[]>
- Returns:
- the parameter value as an object, or
null
if no value has been set and there is no default value. - See Also:
-