Package org.opengis.referencing.datum
Class PixelInCell
- java.lang.Object
-
- org.opengis.util.CodeList<PixelInCell>
-
- org.opengis.referencing.datum.PixelInCell
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PixelInCell>
@UML(identifier="CD_PixelInCell", specification=ISO_19111) public final class PixelInCell extends CodeList<PixelInCell>
Specification of the way the image grid is associated with the image data attributes.This code list is similar to
PixelOrientationexcept that the later is more clearly restricted to the two-dimensional case.- Since:
- 1.0
- Version:
- 3.0
- See Also:
PixelOrientation, 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 PixelInCellCELL_CENTERThe origin of the image coordinate system is the centre of a grid cell or image pixel.static PixelInCellCELL_CORNERThe origin of the image coordinate system is the corner of a grid cell, or half-way between the centres of adjacent image pixels.private static longserialVersionUIDSerial number for compatibility with different versions.private static java.util.List<PixelInCell>VALUESList of all enumerations of this type.
-
Constructor Summary
Constructors Modifier Constructor Description privatePixelInCell(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 PixelInCell[]family()Returns the list of enumerations of the same kind than this enum.static PixelInCellvalueOf(java.lang.String code)Returns the pixel in cell that matches the given string, or returns a new one if none match it.static PixelInCell[]values()Returns the list ofPixelInCells.
-
-
-
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<PixelInCell> VALUES
List of all enumerations of this type. Must be declared before any enum declaration.
-
CELL_CENTER
@UML(identifier="cell center", obligation=CONDITIONAL, specification=ISO_19111) public static final PixelInCell CELL_CENTER
The origin of the image coordinate system is the centre of a grid cell or image pixel.- See Also:
PixelOrientation.CENTER
-
CELL_CORNER
@UML(identifier="cell corner", obligation=CONDITIONAL, specification=ISO_19111) public static final PixelInCell CELL_CORNER
The origin of the image coordinate system is the corner of a grid cell, or half-way between the centres of adjacent image pixels.- See Also:
PixelOrientation.LOWER_LEFT
-
-
Constructor Detail
-
PixelInCell
private PixelInCell(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 PixelInCell[] values()
Returns the list ofPixelInCells.- Returns:
- The list of codes declared in the current JVM.
-
family
public PixelInCell[] family()
Returns the list of enumerations of the same kind than this enum.- Specified by:
familyin classCodeList<PixelInCell>- Returns:
- The codes of the same kind than this code.
-
valueOf
public static PixelInCell valueOf(java.lang.String code)
Returns the pixel in cell 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.
-
-