public class DefaultVerticalExtent extends ISOMetadata implements VerticalExtent
EX_VerticalExtent
├─minimumValue…… The lowest vertical extent contained in the dataset.
├─maximumValue…… The highest vertical extent contained in the dataset.
└─verticalCRS……… Information about the vertical coordinate reference system to which the maximum and minimum elevation values are measured. The CRS identification includes unit of measure.setBounds(Envelope) for setting the extent from the given envelope.XML instead.Defined in the sis-metadata module
identifiers| Constructor and Description |
|---|
DefaultVerticalExtent()
Constructs an initially empty vertical extent.
|
DefaultVerticalExtent(double minimumValue,
double maximumValue,
VerticalCRS verticalCRS)
Creates a vertical extent initialized to the specified values.
|
DefaultVerticalExtent(VerticalExtent object)
Constructs a new instance initialized with the values from the specified metadata object.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultVerticalExtent |
castOrCopy(VerticalExtent object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Double |
getMaximumValue()
Returns the highest vertical extent contained in the dataset.
|
Double |
getMinimumValue()
Returns the lowest vertical extent contained in the dataset.
|
VerticalCRS |
getVerticalCRS()
Provides information about the vertical coordinate reference system to
which the maximum and minimum elevation values are measured.
|
void |
intersect(VerticalExtent other)
Sets this vertical extent to the intersection of this extent with the specified one.
|
void |
setBounds(Envelope envelope)
Sets this vertical extent to values inferred from the specified envelope.
|
void |
setMaximumValue(Double newValue)
Sets the highest vertical extent contained in the dataset.
|
void |
setMinimumValue(Double newValue)
Sets the lowest vertical extent contained in the dataset.
|
void |
setVerticalCRS(VerticalCRS newValue)
Sets the information about the vertical coordinate reference system to
which the maximum and minimum elevation values are measured.
|
freeze, getIdentifierMap, getIdentifiers, getStandardcheckWritePermission, clone, collectionType, copyCollection, copyList, copySet, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSetasMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toStringpublic DefaultVerticalExtent()
public DefaultVerticalExtent(double minimumValue,
double maximumValue,
VerticalCRS verticalCRS)
minimumValue - the lowest vertical extent contained in the dataset, or Double.NaN if none.maximumValue - the highest vertical extent contained in the dataset, or Double.NaN if none.verticalCRS - the information about the vertical coordinate reference system, or null.public DefaultVerticalExtent(VerticalExtent object)
object - the metadata to copy values from, or null if none.castOrCopy(VerticalExtent)public static DefaultVerticalExtent castOrCopy(VerticalExtent object)
null, then this method returns null.DefaultVerticalExtent, then it is returned unchanged.DefaultVerticalExtent 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 Double getMinimumValue()
getMinimumValue in interface VerticalExtentnull.public void setMinimumValue(Double newValue)
newValue - the new minimum value.public Double getMaximumValue()
getMaximumValue in interface VerticalExtentnull.public void setMaximumValue(Double newValue)
newValue - the new maximum value.public VerticalCRS getVerticalCRS()
getVerticalCRS in interface VerticalExtentnull.public void setVerticalCRS(VerticalCRS newValue)
newValue - the new vertical CRS.public void setBounds(Envelope envelope) throws TransformException
Note: this method is available only if the referencing module is on the classpath.
envelope - the envelope to use for setting this vertical extent.UnsupportedOperationException - if the referencing module is not on the classpath.TransformException - if the envelope can not be transformed to a vertical extent.DefaultExtent.addElements(Envelope),
DefaultGeographicBoundingBox.setBounds(Envelope),
DefaultTemporalExtent.setBounds(Envelope)public void intersect(VerticalExtent other) throws IllegalArgumentException
If there is no intersection between the two extents, then this method sets both minimum and maximum values to Double.NaN. If either this extent or the specified extent has NaN bounds, then the corresponding bounds of the intersection result will also be NaN.
other - the vertical extent to intersect with this extent.IllegalArgumentException - if the two extents do not use the same datum, ignoring metadata.Extents.intersection(VerticalExtent, VerticalExtent),
GeneralEnvelope.intersect(Envelope)Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.