Package org.opengis.referencing.datum
Class PixelInCell
- Object
 - 
- CodeList<PixelInCell>
 - 
- PixelInCell
 
 
 
- 
- All Implemented Interfaces:
 Serializable,Comparable<PixelInCell>,ControlledVocabulary
@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.Note: this code list is similar toPixelOrientationexcept that the later is more clearly restricted to the two-dimensional case.- Since:
 - 1.0
 - See Also:
 PixelOrientation, Serialized Form
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class 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. 
- 
Method Summary
Modifier and Type Method Description PixelInCell[]family()Returns the list of codes of the same kind than this code list element.String[]names()Returns the programmatic name and the UML identifier of this code, together with alternative UML identifier if any.static PixelInCellvalueOf(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.- 
Methods inherited from class CodeList
compareTo, identifier, name, ordinal, readResolve, toString, valueOf, valueOf, valueOf 
 - 
 
 - 
 
- 
- 
Field Detail
- 
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
 
 - 
 
- 
Method Detail
- 
names
public String[] names()
Returns the programmatic name and the UML identifier of this code, together with alternative UML identifier if any. In particular,CELL_CENTERis known as both"cell center"(from ISO 19111:2007) and"cell centre"(derived from ISO 19162:2015).- Specified by:
 namesin interfaceControlledVocabulary- Overrides:
 namesin classCodeList<PixelInCell>- Returns:
 - Names of this code, including alternative names if any.
 
 
- 
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 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 parentCodeListclass.- Specified by:
 familyin interfaceControlledVocabulary- Specified by:
 familyin classCodeList<PixelInCell>- Returns:
 - all code values for this code list.
 
 
- 
valueOf
public static PixelInCell valueOf(String code)
Returns the pixel in cell 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.
 
 
 - 
 
 -