public class DefaultNominalResolution extends ISOMetadata implements NominalResolution
Limitations:
XML
instead.Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultNominalResolution()
Constructs an initially empty nominal resolution.
|
DefaultNominalResolution(NominalResolution object)
Constructs a new instance initialized with the values from the specified metadata object.
|
Modifier and Type | Method and Description |
---|---|
static DefaultNominalResolution |
castOrCopy(NominalResolution object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Double |
getGroundResolution()
Returns the distance between consistent parts of (centre, left side, right side) adjacent
pixels in the object space.
|
Double |
getScanningResolution()
Returns the distance between consistent parts of (centre, left side, right side)
adjacent pixels in the scan plane.
|
void |
setGroundResolution(Double newValue)
Sets the distance between consistent parts of (centre, left side, right side) adjacent pixels
in the object space.
|
void |
setScanningResolution(Double newValue)
Sets the distance between consistent parts of (centre, left side, right side) adjacent
pixels in the scan plane.
|
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultNominalResolution()
public DefaultNominalResolution(NominalResolution object)
object
- The metadata to copy values from, or null
if none.castOrCopy(NominalResolution)
public static DefaultNominalResolution castOrCopy(NominalResolution object)
null
, then this method returns null
.DefaultNominalResolution
, then it is returned unchanged.DefaultNominalResolution
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.@ValueRange(minimum=0.0, isMinIncluded=false) public Double getScanningResolution()
getScanningResolution
in interface NominalResolution
null
.public void setScanningResolution(Double newValue)
newValue
- The new scanning resolution value.IllegalArgumentException
- if the given value is NaN, zero or negative.@ValueRange(minimum=0.0, isMinIncluded=false) public Double getGroundResolution()
getGroundResolution
in interface NominalResolution
null
.public void setGroundResolution(Double newValue)
newValue
- The new ground resolution value.IllegalArgumentException
- if the given value is NaN, zero or negative.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.