Class ResolutionImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- ResolutionImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Resolution
public class ResolutionImpl extends MetadataEntity implements Resolution
Level of detail expressed as a scale factor or a ground distance.- 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 ResolutionImpl()
Constructs an initially empty Resolution.ResolutionImpl(Resolution 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 Double
getDistance()
Ground sample distance.RepresentativeFraction
getEquivalentScale()
Level of detail expressed as the scale of a comparable hardcopy map or chart.void
setDistance(Double newValue)
Set the ground sample distance.void
setEquivalentScale(RepresentativeFraction newValue)
Set the level of detail expressed as the scale of a comparable hardcopy map or chart.-
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
-
-
-
-
Constructor Detail
-
ResolutionImpl
public ResolutionImpl()
Constructs an initially empty Resolution.
-
ResolutionImpl
public ResolutionImpl(Resolution source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
-
Method Detail
-
getEquivalentScale
public RepresentativeFraction getEquivalentScale()
Level of detail expressed as the scale of a comparable hardcopy map or chart. Only one of equivalent scale and ground sample distance may be provided.- Specified by:
getEquivalentScale
in interfaceResolution
- Returns:
- Level of detail expressed as the scale of a comparable hardcopy, or
null
.
-
setEquivalentScale
public void setEquivalentScale(RepresentativeFraction newValue)
Set the level of detail expressed as the scale of a comparable hardcopy map or chart.- Since:
- 2.4
-
getDistance
public Double getDistance()
Ground sample distance. Only one of equivalent scale and ground sample distance may be provided.- Specified by:
getDistance
in interfaceResolution
- Returns:
- The ground sample distance, or
null
.
-
setDistance
public void setDistance(Double newValue)
Set the ground sample distance.
-
-