public class ObservationOmObservationCreator extends AbstractOmObservationCreator
Modifier and Type | Field and Description |
---|---|
private Map<String,AbstractFeature> |
features |
private static org.slf4j.Logger |
LOGGER |
private List<OmObservation> |
observationCollection |
private Map<Integer,OmObservationConstellation> |
observationConstellations |
private Collection<AbstractObservation> |
observations |
private Map<String,AbstractPhenomenon> |
observedProperties |
private Map<String,SosProcedureDescription> |
procedures |
private AbstractObservationRequest |
request |
Constructor and Description |
---|
ObservationOmObservationCreator(Collection<AbstractObservation> observations,
AbstractObservationRequest request,
Locale language,
org.hibernate.Session session) |
ObservationOmObservationCreator(Collection<AbstractObservation> observations,
AbstractObservationRequest request,
org.hibernate.Session session) |
addName, checkForAdditionalObservationCreator, checkVersion, createFeatureOfInterest, createObservableProperty, createProcedure, createSpatialFilteringProfileParameter, getActiveProfile, getCache, getDecimalSeparator, getFeatureQueryHandler, getI18N, getNoDataValue, getResponseFormat, getSession, getTokenSeparator, getTupleSeparator, getVersion
private static final org.slf4j.Logger LOGGER
private final Collection<AbstractObservation> observations
private final AbstractObservationRequest request
private final Map<String,AbstractFeature> features
private final Map<String,AbstractPhenomenon> observedProperties
private final Map<String,SosProcedureDescription> procedures
private final Map<Integer,OmObservationConstellation> observationConstellations
private List<OmObservation> observationCollection
public ObservationOmObservationCreator(Collection<AbstractObservation> observations, AbstractObservationRequest request, Locale language, org.hibernate.Session session)
public ObservationOmObservationCreator(Collection<AbstractObservation> observations, AbstractObservationRequest request, org.hibernate.Session session)
private Collection<AbstractObservation> getObservations()
private String getResultModel()
private SosProcedureDescription getProcedure(String procedureId)
private AbstractPhenomenon getObservedProperty(String phenomenonId)
private AbstractFeature getFeature(String featureId)
public List<OmObservation> create() throws OwsExceptionReport, ConverterException
create
in class AbstractOmObservationCreator
OwsExceptionReport
ConverterException
protected OmObservation createObservation(AbstractObservation hObservation) throws OwsExceptionReport, ConverterException
OwsExceptionReport
ConverterException
private void checkOrSetObservablePropertyUnit(AbstractPhenomenon phen, String unit)
private Value<?> getValueFromObservation(AbstractObservation hObservation) throws CodedException, OwsExceptionReport
hObservation
- Observation objectOwsExceptionReport
CodedException
private OmObservation createNewObservation(OmObservationConstellation oc, AbstractObservation ho, Value<?> value)
private Time getPhenomenonTime(AbstractObservation hObservation)
private String createPhenomenon(AbstractObservation hObservation)
private String createProcedure(AbstractObservation hObservation) throws OwsExceptionReport, ConverterException
OwsExceptionReport
ConverterException
private String createFeatureOfInterest(AbstractObservation hObservation) throws OwsExceptionReport
OwsExceptionReport
private OmObservationConstellation createObservationConstellation(AbstractObservation hObservation, String procedureId, String phenomenonId, String featureId)
Copyright © 2012-2015 52north.org. All Rights Reserved.