Search in sources :

Example 6 with ExtractionResult

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");
}
Also used : Observation(org.opengis.observation.Observation) AbstractObservation(org.geotoolkit.observation.xml.AbstractObservation) ExtractionResult(org.geotoolkit.observation.model.ExtractionResult)

Aggregations

ExtractionResult (org.geotoolkit.observation.model.ExtractionResult)6 Process (org.geotoolkit.observation.xml.Process)5 IOException (java.io.IOException)4 ProcedureTree (org.geotoolkit.observation.model.ExtractionResult.ProcedureTree)4 GeoSpatialBound (org.geotoolkit.observation.model.GeoSpatialBound)4 SamplingFeature (org.geotoolkit.sampling.xml.SamplingFeature)4 MeasureStringBuilder (org.geotoolkit.sos.MeasureStringBuilder)4 AbstractDataRecord (org.geotoolkit.swe.xml.AbstractDataRecord)4 Phenomenon (org.geotoolkit.swe.xml.Phenomenon)4 Array (ucar.ma2.Array)4 Variable (ucar.nc2.Variable)4 AbstractObservation (org.geotoolkit.observation.xml.AbstractObservation)2 Observation (org.opengis.observation.Observation)2 ArrayList (java.util.ArrayList)1 PhenomenonProperty (org.geotoolkit.swe.xml.PhenomenonProperty)1 DirectPosition (org.opengis.geometry.DirectPosition)1 Phenomenon (org.opengis.observation.Phenomenon)1