Package org.opengis.referencing.cs
Class RangeMeaning
- Object
-
- CodeList<RangeMeaning>
-
- RangeMeaning
-
- All Implemented Interfaces:
Serializable
,Comparable<RangeMeaning>
,ControlledVocabulary
@UML(identifier="CS_RangeMeaning", specification=ISO_19111) public final class RangeMeaning extends CodeList<RangeMeaning>
Meaning of the axis value range specified through minimum value and maximum value.- Since:
- 2.1
- See Also:
CoordinateSystemAxis.getRangeMeaning()
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class CodeList
CodeList.Filter
-
-
Field Summary
Fields Modifier and Type Field Description static RangeMeaning
EXACT
Any value between and including minimum value and maximum value is valid.static RangeMeaning
WRAPAROUND
The axis is continuous with values wrapping around at the minimum value and maximum value.
-
Method Summary
Modifier and Type Method Description RangeMeaning[]
family()
Returns the list of codes of the same kind than this code list element.static RangeMeaning
valueOf(String code)
Returns the range meaning that matches the given string, or returns a new one if none match it.static RangeMeaning[]
values()
Returns the list ofRangeMeaning
s.
-
-
-
Field Detail
-
EXACT
@UML(identifier="exact", obligation=CONDITIONAL, specification=ISO_19111) public static final RangeMeaning EXACT
Any value between and including minimum value and maximum value is valid.
-
WRAPAROUND
@UML(identifier="wraparound", obligation=CONDITIONAL, specification=ISO_19111) public static final RangeMeaning WRAPAROUND
The axis is continuous with values wrapping around at the minimum value and maximum value. Values with the same meaning repeat modulo the difference between maximum value and minimum value.Example: In a geographic CRS, longitude values are often defined with a finite extent (e.g., from -180 degrees to +180 degrees). The minimum and maximum longitude limits define a single line (on the ellipsoid, sphere, or cylinder), known as the anti-meridian, across which longitude values are discontinuous: as this line is crossed, longitude changes abruptly (e.g., going West from a little more than -180° to a little less than +180°).
-
-
Method Detail
-
values
public static RangeMeaning[] values()
Returns the list ofRangeMeaning
s.- Returns:
- the list of codes declared in the current JVM.
-
family
public RangeMeaning[] family()
Returns the list of codes of the same kind than this code list element. Invoking this method is equivalent to invokingvalues()
, except that this method can be invoked on an instance of the parentCodeList
class.- Specified by:
family
in interfaceControlledVocabulary
- Specified by:
family
in classCodeList<RangeMeaning>
- Returns:
- all code values for this code list.
-
valueOf
public static RangeMeaning valueOf(String code)
Returns the range meaning that matches the given string, or returns a new one if none match it. More specifically, this methods returns the first instance for whichname().equals(code)
returnstrue
. If no existing instance is found, then a new one is created for the given name.- Parameters:
code
- the name of the code to fetch or to create.- Returns:
- a code matching the given name.
-
-