本文整理了Java中org.opengis.metadata.extent.Extent.getVerticalElements()
方法的一些代码示例,展示了Extent.getVerticalElements()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Extent.getVerticalElements()
方法的具体详情如下:
包路径:org.opengis.metadata.extent.Extent
类名称:Extent
方法名:getVerticalElements
[英]Provides vertical component of the extent of the referring object
[中]提供引用对象范围的垂直分量
代码示例来源:origin: apache/sis
/**
* Constructs a new instance initialized with the values from the specified metadata object.
* This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the
* given object are not recursively copied.
*
* @param object the metadata to copy values from, or {@code null} if none.
*
* @see #castOrCopy(Extent)
*/
public DefaultExtent(final Extent object) {
super(object);
if (object != null) {
description = object.getDescription();
geographicElements = copyCollection(object.getGeographicElements(), GeographicExtent.class);
temporalElements = copyCollection(object.getTemporalElements(), TemporalExtent.class);
verticalElements = copyCollection(object.getVerticalElements(), VerticalExtent.class);
}
}
代码示例来源:origin: org.apache.sis.core/sis-metadata
/**
* Constructs a new instance initialized with the values from the specified metadata object.
* This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the
* given object are not recursively copied.
*
* @param object the metadata to copy values from, or {@code null} if none.
*
* @see #castOrCopy(Extent)
*/
public DefaultExtent(final Extent object) {
super(object);
if (object != null) {
description = object.getDescription();
geographicElements = copyCollection(object.getGeographicElements(), GeographicExtent.class);
temporalElements = copyCollection(object.getTemporalElements(), TemporalExtent.class);
verticalElements = copyCollection(object.getVerticalElements(), VerticalExtent.class);
}
}
代码示例来源:origin: org.opengis/geoapi-conformance
/**
* Validates the given extent.
*
* @param object The object to validate, or {@code null}.
*/
public void validate(final Extent object) {
if (object == null) {
return;
}
validateOptional(object.getDescription());
validateCollection(GeographicExtent.class, object.getGeographicElements());
validateCollection(VerticalExtent.class, object.getVerticalElements());
validateCollection(TemporalExtent.class, object.getTemporalElements());
}
}
代码示例来源:origin: org.apache.sis.core/sis-metadata
verticalElements = intersect(VerticalExtent.class, verticalElements, other.getVerticalElements(), new BinaryOperator<VerticalExtent> () {@Override public VerticalExtent apply(VerticalExtent e1, VerticalExtent e2) {return Extents.intersection(e1, e2);}});
temporalElements = intersect(TemporalExtent.class, temporalElements, other.getTemporalElements(), new BinaryOperator<TemporalExtent> () {@Override public TemporalExtent apply(TemporalExtent e1, TemporalExtent e2) {return Extents.intersection(e1, e2);}});
代码示例来源:origin: apache/sis
verticalElements = intersect(VerticalExtent.class, verticalElements, other.getVerticalElements(), Extents::intersection);
temporalElements = intersect(TemporalExtent.class, temporalElements, other.getTemporalElements(), Extents::intersection);
代码示例来源:origin: opengeospatial/geoapi
/**
* Validates the given extent.
*
* @param object the object to validate, or {@code null}.
*/
public void validate(final Extent object) {
if (object == null) {
return;
}
validateOptional(object.getDescription());
for (GeographicExtent e : toArray(GeographicExtent.class, object.getGeographicElements())) dispatch(e);
for (VerticalExtent e : toArray(VerticalExtent .class, object.getVerticalElements ())) validate(e);
for (TemporalExtent e : toArray(TemporalExtent .class, object.getTemporalElements ())) validate(e);
}
}
代码示例来源:origin: opengeospatial/geoapi
double min = Double.POSITIVE_INFINITY;
double max = Double.NEGATIVE_INFINITY;
for (final VerticalExtent e : extent.getVerticalElements()) {
double minValue = toPrimitive(e.getMinimumValue());
double maxValue = toPrimitive(e.getMaximumValue());
代码示例来源:origin: apache/sis
/**
* Tests {@link Store#getMetadata()}.
*
* @throws DataStoreException if an error occurred while parsing the data.
*/
@Test
public void testGetMetadata() throws DataStoreException {
final Metadata metadata;
try (Store store = open()) {
metadata = store.getMetadata();
}
final Extent extent = getSingleton(((AbstractIdentification) getSingleton(metadata.getIdentificationInfo())).getExtents());
final GeographicBoundingBox bbox = (GeographicBoundingBox) getSingleton(extent.getGeographicElements());
assertEquals("westBoundLongitude", 50.23, bbox.getWestBoundLongitude(), STRICT);
assertEquals("eastBoundLongitude", 50.31, bbox.getEastBoundLongitude(), STRICT);
assertEquals("southBoundLatitude", 9.23, bbox.getSouthBoundLatitude(), STRICT);
assertEquals("northBoundLatitude", 9.27, bbox.getNorthBoundLatitude(), STRICT);
assertTrue("Should not have a vertical extent.", extent.getVerticalElements().isEmpty());
}
代码示例来源:origin: org.apache.sis.core/sis-metadata
VerticalDatumType selectedType = null;
if (extent != null) {
for (final VerticalExtent element : extent.getVerticalElements()) {
double min = element.getMinimumValue();
double max = element.getMaximumValue();
代码示例来源:origin: apache/sis
VerticalDatumType selectedType = null;
if (extent != null) {
for (final VerticalExtent element : extent.getVerticalElements()) {
double min = element.getMinimumValue();
double max = element.getMaximumValue();
代码示例来源:origin: apache/sis
final VerticalExtent ve = getSingleton(extent.getVerticalElements());
assertEquals("minimumValue", 0.1, ve.getMinimumValue(), STRICT);
assertEquals("maximumValue", 10000, ve.getMaximumValue(), STRICT);
内容来源于网络,如有侵权,请联系作者删除!