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

static final class MapProjectionParameters.StandardParallel extends DefaultParameterValue<double[]>
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      For 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[]> DESCRIPTOR
      All 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<?> standardParallel1
      The parameters for the standard parallels.
    • standardParallel2

      private final org.opengis.parameter.ParameterValue<?> standardParallel2
      The 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

      protected void setValue(Object value, javax.measure.Unit<?> unit)
      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 class DefaultParameterValue<double[]>
      Parameters:
      value - the parameter value, or null to restore the default.
      unit - the unit associated to the new parameter value, or null.
      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 interface org.opengis.parameter.ParameterValue<double[]>
      Overrides:
      getValue in class DefaultParameterValue<double[]>
      Returns:
      the parameter value as an object, or null if no value has been set and there is no default value.
      See Also: