use of org.geotoolkit.observation.model.ExtractionResult in project geotoolkit by Geomatys.
the class AbstractObservationStore method getTemporalBounds.
/**
* {@inheritDoc }
*/
@Override
public TemporalGeometricPrimitive getTemporalBounds() throws DataStoreException {
final ExtractionResult result = new ExtractionResult();
result.spatialBound.initBoundary();
final List<Observation> observations = getAllObservations(new ArrayList<>());
for (Observation obs : observations) {
result.spatialBound.addTime(obs.getSamplingTime());
}
return result.spatialBound.getTimeObject("2.0.0");
}
Aggregations