public class DefaultResolution extends ISOMetadata implements Resolution
MD_Resolution
├─angularDistance……
Angular sampling measure.
├─distance………………………
Ground sample distance.
├─equivalentScale……
Level of detail expressed as the scale of a comparable hardcopy map or chart.
│ └─denominator……
The number below the line in a vulgar fraction.
├─levelOfDetail…………
Brief textual description of the spatial resolution of the resource.
└─vertical………………………
Vertical sampling distance.Resolution
as an union (in the C/C++ sense):
only one of the properties in this class can be set to a non-empty value.
Setting any property to a non-empty value discard all the other ones.
See the constructor javadoc
for information about which property has precedence on copy operations.
XML
instead.AbstractIdentification.getSpatialResolutions()
,
Serialized FormDefined in the sis-metadata
module
identifiers
Constructor and Description |
---|
DefaultResolution()
Constructs an initially empty resolution.
|
DefaultResolution(RepresentativeFraction scale)
Creates a new resolution initialized to the given scale.
|
DefaultResolution(Resolution object)
Constructs a new instance initialized with the values from the specified metadata object.
|
Modifier and Type | Method and Description |
---|---|
static DefaultResolution |
castOrCopy(Resolution object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Double |
getAngularDistance()
Returns the angular sampling measure.
|
Double |
getDistance()
Returns the ground sample distance.
|
RepresentativeFraction |
getEquivalentScale()
Returns the level of detail expressed as the scale of a comparable hardcopy map or chart.
|
InternationalString |
getLevelOfDetail()
Returns a brief textual description of the spatial resolution of the resource.
|
Double |
getVertical()
Returns the vertical sampling distance.
|
void |
setAngularDistance(Double newValue)
Sets the angular sampling measure.
|
void |
setDistance(Double newValue)
Sets the ground sample distance.
|
void |
setEquivalentScale(RepresentativeFraction newValue)
Sets the level of detail expressed as the scale of a comparable hardcopy map or chart.
|
void |
setLevelOfDetail(InternationalString newValue)
Sets the textual description of the spatial resolution of the resource.
|
void |
setVertical(Double newValue)
Sets the vertical sampling distance.
|
freeze, getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultResolution()
public DefaultResolution(RepresentativeFraction scale)
scale
- the scale, or null
if none.public DefaultResolution(Resolution object)
If more than one of the equivalent scale, distance, vertical, angular distance and level of detail are specified, then the first of those values is taken and the other values are silently discarded.
object
- the metadata to copy values from, or null
if none.castOrCopy(Resolution)
public static DefaultResolution castOrCopy(Resolution object)
null
, then this method returns null
.DefaultResolution
, then it is returned unchanged.DefaultResolution
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- the object to get as a SIS implementation, or null
if none.null
if the argument was null.public RepresentativeFraction getEquivalentScale()
getEquivalentScale
in interface Resolution
null
.public void setEquivalentScale(RepresentativeFraction newValue)
newValue
is non-null, then this method automatically
discards all other properties.newValue
- the new equivalent scale.@ValueRange(minimum=0.0, isMinIncluded=false) public Double getDistance()
getDistance
in interface Resolution
null
.public void setDistance(Double newValue)
newValue
is non-null, then this method automatically
discards all other properties.newValue
- the new distance, or null
.IllegalArgumentException
- if the given value is NaN, zero or negative.@UML(identifier="vertical", obligation=CONDITIONAL, specification=ISO_19115) @ValueRange(minimum=0.0, isMinIncluded=false) public Double getVertical()
null
.public void setVertical(Double newValue)
newValue
is non-null, then this method automatically
discards all other properties.newValue
- the new distance, or null
.IllegalArgumentException
- if the given value is NaN, zero or negative.@UML(identifier="angularDistance", obligation=CONDITIONAL, specification=ISO_19115) @ValueRange(minimum=0.0, isMinIncluded=false) public Double getAngularDistance()
null
.public void setAngularDistance(Double newValue)
newValue
is non-null, then this method automatically
discards all other properties.newValue
- the new distance, or null
.IllegalArgumentException
- if the given value is NaN, zero or negative.@UML(identifier="levelOfDetail", obligation=CONDITIONAL, specification=ISO_19115) public InternationalString getLevelOfDetail()
null
.public void setLevelOfDetail(InternationalString newValue)
newValue
is non-null, then this method automatically
discards all other properties.newValue
- the new distance.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.