Package org.opengis.metadata.spatial
Class PixelOrientation
- java.lang.Object
-
- org.opengis.util.CodeList<PixelOrientation>
-
- org.opengis.metadata.spatial.PixelOrientation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PixelOrientation>
@UML(identifier="MD_PixelOrientationCode", specification=ISO_19115) public final class PixelOrientation extends CodeList<PixelOrientation>
Point in a pixel corresponding to the Earth location of the pixel.This code list is restricted to the two-dimensional case. A similar code list,
PixelInCell
, can be used for n-dimensional grid cell.- Since:
- 2.0
- Version:
- 3.0
- See Also:
PixelInCell
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter
-
-
Field Summary
Fields Modifier and Type Field Description static PixelOrientation
CENTER
Point in a pixel corresponding to the Earth location of the pixel.static PixelOrientation
LOWER_LEFT
The corner in the pixel closest to the origin of the SRS; if two are at the same distance from the origin, the one with the smallest x-value.static PixelOrientation
LOWER_RIGHT
Next corner counterclockwise from the lower left.private static long
serialVersionUID
Serial number for compatibility with different versions.static PixelOrientation
UPPER_LEFT
Next corner counterclockwise from the upper right.static PixelOrientation
UPPER_RIGHT
Next corner counterclockwise from the lower right.private static java.util.List<PixelOrientation>
VALUES
List of all enumerations of this type.
-
Constructor Summary
Constructors Modifier Constructor Description private
PixelOrientation(java.lang.String name)
Constructs an enum with the given name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PixelOrientation[]
family()
Returns the list of enumerations of the same kind than this enum.static PixelOrientation
valueOf(java.lang.String code)
Returns the pixel orientation that matches the given string, or returns a new one if none match it.static PixelOrientation[]
values()
Returns the list ofPixelOrientation
s.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial number for compatibility with different versions.- See Also:
- Constant Field Values
-
VALUES
private static final java.util.List<PixelOrientation> VALUES
List of all enumerations of this type. Must be declared before any enum declaration.
-
CENTER
@UML(identifier="center", obligation=CONDITIONAL, specification=ISO_19115) public static final PixelOrientation CENTER
Point in a pixel corresponding to the Earth location of the pixel.- See Also:
PixelInCell.CELL_CENTER
-
LOWER_LEFT
@UML(identifier="lowerLeft", obligation=CONDITIONAL, specification=ISO_19115) public static final PixelOrientation LOWER_LEFT
The corner in the pixel closest to the origin of the SRS; if two are at the same distance from the origin, the one with the smallest x-value.- See Also:
PixelInCell.CELL_CORNER
-
LOWER_RIGHT
@UML(identifier="lowerRight", obligation=CONDITIONAL, specification=ISO_19115) public static final PixelOrientation LOWER_RIGHT
Next corner counterclockwise from the lower left.
-
UPPER_RIGHT
@UML(identifier="upperRight", obligation=CONDITIONAL, specification=ISO_19115) public static final PixelOrientation UPPER_RIGHT
Next corner counterclockwise from the lower right.
-
UPPER_LEFT
@UML(identifier="upperLeft", obligation=CONDITIONAL, specification=ISO_19115) public static final PixelOrientation UPPER_LEFT
Next corner counterclockwise from the upper right.
-
-
Constructor Detail
-
PixelOrientation
private PixelOrientation(java.lang.String name)
Constructs an enum with the given name. The new enum is automatically added to the list returned byvalues()
.- Parameters:
name
- The enum name. This name must not be in use by an other enum of this type.
-
-
Method Detail
-
values
public static PixelOrientation[] values()
Returns the list ofPixelOrientation
s.- Returns:
- The list of codes declared in the current JVM.
-
family
public PixelOrientation[] family()
Returns the list of enumerations of the same kind than this enum.- Specified by:
family
in classCodeList<PixelOrientation>
- Returns:
- The codes of the same kind than this code.
-
valueOf
public static PixelOrientation valueOf(java.lang.String code)
Returns the pixel orientation that matches the given string, or returns a new one if none match it.- Parameters:
code
- The name of the code to fetch or to create.- Returns:
- A code matching the given name.
-
-