Class GeorectifiedImpl
- Object
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Georectified
,GridSpatialRepresentation
,SpatialRepresentation
public class GeorectifiedImpl extends GridSpatialRepresentationImpl implements Georectified
Grid whose cells are regularly spaced in a geographic (i.e., lat / long) or map coordinate system defined in the Spatial Referencing System (SRS) so that any cell in the grid can be geolocated given its grid coordinate and the grid origin, cell spacing, and orientation indication of whether or not geographic.- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Constructor Description GeorectifiedImpl()
Constructs an initially empty georectified object.GeorectifiedImpl(int numberOfDimensions, List<? extends Dimension> axisDimensionsProperties, CellGeometry cellGeometry, boolean transformationParameterAvailable, boolean checkPointAvailable, List<? extends Point> cornerPoints, PixelOrientation pointInPixel)
Creates a georectified object initialized to the specified values.GeorectifiedImpl(Georectified source)
Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point
getCenterPoint()
Earth location in the coordinate system defined by the Spatial Reference System and the grid coordinate of the cell halfway between opposite ends of the grid in the spatial dimensions.InternationalString
getCheckPointDescription()
Description of geographic position points used to test the accuracy of the georeferenced grid data.List<Point>
getCornerPoints()
Earth location in the coordinate system defined by the Spatial Reference System and the grid coordinate of the cells at opposite ends of grid coverage along two diagonals in the grid spatial dimensions.PixelOrientation
getPointInPixel()
Point in a pixel corresponding to the Earth location of the pixel.InternationalString
getTransformationDimensionDescription()
Description of the information about which grid dimensions are the spatial dimensions.Collection<InternationalString>
getTransformationDimensionMapping()
Information about which grid dimensions are the spatial dimensions.boolean
isCheckPointAvailable()
Indication of whether or not geographic position points are available to test the accuracy of the georeferenced grid data.void
setCenterPoint(Point newValue)
Set the center point.void
setCheckPointAvailable(boolean newValue)
Set indication of whether or not geographic position points are available to test the accuracy of the georeferenced grid data.void
setCheckPointDescription(InternationalString newValue)
Set the description of geographic position points used to test the accuracy of the georeferenced grid data.void
setCornerPoints(List<? extends Point> newValues)
Set the corner points.void
setPointInPixel(PixelOrientation newValue)
Set the point in a pixel corresponding to the Earth location of the pixel.void
setTransformationDimensionDescription(InternationalString newValue)
Set the description of the information about which grid dimensions are the spatial dimensions.void
setTransformationDimensionMapping(Collection<? extends InternationalString> newValues)
Set information about which grid dimensions are the spatial dimensions.-
Methods inherited from class GridSpatialRepresentationImpl
getAxisDimensionsProperties, getCellGeometry, getNumberOfDimensions, isTransformationParameterAvailable, setAxisDimensionsProperties, setCellGeometry, setNumberOfDimensions, setTransformationParameterAvailable
-
Methods inherited from class MetadataEntity
ensureNonNull, getStandard
-
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
-
Methods inherited from class AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
-
Methods inherited from interface GridSpatialRepresentation
getAxisDimensionsProperties, getCellGeometry, getNumberOfDimensions, isTransformationParameterAvailable
-
-
-
-
Constructor Detail
-
GeorectifiedImpl
public GeorectifiedImpl()
Constructs an initially empty georectified object.
-
GeorectifiedImpl
public GeorectifiedImpl(Georectified source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
GeorectifiedImpl
public GeorectifiedImpl(int numberOfDimensions, List<? extends Dimension> axisDimensionsProperties, CellGeometry cellGeometry, boolean transformationParameterAvailable, boolean checkPointAvailable, List<? extends Point> cornerPoints, PixelOrientation pointInPixel)
Creates a georectified object initialized to the specified values.
-
-
Method Detail
-
isCheckPointAvailable
public boolean isCheckPointAvailable()
Indication of whether or not geographic position points are available to test the accuracy of the georeferenced grid data.- Specified by:
isCheckPointAvailable
in interfaceGeorectified
- Returns:
- Whether or not geographic position points are available to test accuracy.
-
setCheckPointAvailable
public void setCheckPointAvailable(boolean newValue)
Set indication of whether or not geographic position points are available to test the accuracy of the georeferenced grid data.
-
getCheckPointDescription
public InternationalString getCheckPointDescription()
Description of geographic position points used to test the accuracy of the georeferenced grid data.- Specified by:
getCheckPointDescription
in interfaceGeorectified
- Returns:
- Description of geographic position points used to test accuracy, or
null
.
-
setCheckPointDescription
public void setCheckPointDescription(InternationalString newValue)
Set the description of geographic position points used to test the accuracy of the georeferenced grid data.
-
getCornerPoints
public List<Point> getCornerPoints()
Earth location in the coordinate system defined by the Spatial Reference System and the grid coordinate of the cells at opposite ends of grid coverage along two diagonals in the grid spatial dimensions. There are four corner points in a georectified grid; at least two corner points along one diagonal are required. @TODO: needs to annotate the geometry module before.- Specified by:
getCornerPoints
in interfaceGeorectified
- Returns:
- The corner points.
-
setCornerPoints
public void setCornerPoints(List<? extends Point> newValues)
Set the corner points.
-
getCenterPoint
public Point getCenterPoint()
Earth location in the coordinate system defined by the Spatial Reference System and the grid coordinate of the cell halfway between opposite ends of the grid in the spatial dimensions. @TODO: needs to annotate the geometry module before.- Specified by:
getCenterPoint
in interfaceGeorectified
- Returns:
- The center point, or
null
.
-
setCenterPoint
public void setCenterPoint(Point newValue)
Set the center point.
-
getPointInPixel
public PixelOrientation getPointInPixel()
Point in a pixel corresponding to the Earth location of the pixel.- Specified by:
getPointInPixel
in interfaceGeorectified
- Returns:
- Earth location of the pixel.
-
setPointInPixel
public void setPointInPixel(PixelOrientation newValue)
Set the point in a pixel corresponding to the Earth location of the pixel.
-
getTransformationDimensionDescription
public InternationalString getTransformationDimensionDescription()
Description of the information about which grid dimensions are the spatial dimensions.- Specified by:
getTransformationDimensionDescription
in interfaceGeorectified
- Returns:
- Description of the information about grid dimensions, or
null
.
-
setTransformationDimensionDescription
public void setTransformationDimensionDescription(InternationalString newValue)
Set the description of the information about which grid dimensions are the spatial dimensions.
-
getTransformationDimensionMapping
public Collection<InternationalString> getTransformationDimensionMapping()
Information about which grid dimensions are the spatial dimensions.- Specified by:
getTransformationDimensionMapping
in interfaceGeorectified
- Returns:
- Information about which grid dimensions are the spatial dimensions, or
null
.
-
setTransformationDimensionMapping
public void setTransformationDimensionMapping(Collection<? extends InternationalString> newValues)
Set information about which grid dimensions are the spatial dimensions.
-
-