use of org.n52.series.db.beans.DataEntity in project SOS by 52North.
the class AbstractObservationDao method toSosObservation.
public ObservationStream toSosObservation(Collection<DataEntity<?>> observations, AbstractObservationRequest request, Locale language, String pdf, OmObservationCreatorContext observationCreatorContext, Session session) throws OwsExceptionReport, ConverterException {
if (observations.isEmpty()) {
return ObservationStream.empty();
}
final long startProcess = System.currentTimeMillis();
ObservationStream sosObservations = HibernateObservationUtilities.createSosObservationsFromObservations(new HashSet<>(observations), request, language, pdf, observationCreatorContext, session);
LOGGER.debug("Time to process {} observations needs {} ms!", observations.size(), System.currentTimeMillis() - startProcess);
return sosObservations;
}
Aggregations