Search in sources :

Example 11 with GetObservationResponse

use of org.n52.shetland.ogc.sos.response.GetObservationResponse in project arctic-sea by 52North.

the class AqdEncoder method getFeatureCollection.

private FeatureCollection getFeatureCollection(GetObservationResponse response) throws EncodingException {
    FeatureCollection featureCollection = new FeatureCollection();
    featureCollection.setGmlId("fc_" + JavaHelper.generateID(new DateTime().toString()));
    return featureCollection;
}
Also used : FeatureCollection(org.n52.shetland.ogc.om.features.FeatureCollection) DateTime(org.joda.time.DateTime)

Example 12 with GetObservationResponse

use of org.n52.shetland.ogc.sos.response.GetObservationResponse in project arctic-sea by 52North.

the class AqdGetObservationResponseEncoder method createFeatureCollection.

private FeatureCollection createFeatureCollection(GetObservationResponse response) throws EncodingException {
    FeatureCollection featureCollection = new FeatureCollection();
    featureCollection.setGmlId("fc_" + JavaHelper.generateID(new DateTime().toString()));
    return featureCollection;
}
Also used : FeatureCollection(org.n52.shetland.ogc.om.features.FeatureCollection) DateTime(org.joda.time.DateTime)

Aggregations

EncodingException (org.n52.svalbard.encode.exception.EncodingException)8 DateTime (org.joda.time.DateTime)6 OmObservation (org.n52.shetland.ogc.om.OmObservation)6 OwsExceptionReport (org.n52.shetland.ogc.ows.exception.OwsExceptionReport)6 FeatureCollection (org.n52.shetland.ogc.om.features.FeatureCollection)5 TimePeriod (org.n52.shetland.ogc.gml.time.TimePeriod)4 ObservationStream (org.n52.shetland.ogc.om.ObservationStream)4 EReportingHeader (org.n52.shetland.aqd.EReportingHeader)3 Time (org.n52.shetland.ogc.gml.time.Time)3 TimeInstant (org.n52.shetland.ogc.gml.time.TimeInstant)3 GetObservationResponse (org.n52.shetland.ogc.sos.response.GetObservationResponse)3 XMLStreamException (javax.xml.stream.XMLStreamException)2 GetObservationResponseType (net.opengis.sos.x20.GetObservationResponseType)2 XmlObject (org.apache.xmlbeans.XmlObject)2 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 NoSuchElementException (java.util.NoSuchElementException)1 Supplier (java.util.function.Supplier)1 OMObservationDocument (net.opengis.om.x20.OMObservationDocument)1 GetObservationResponseDocument (net.opengis.sos.x20.GetObservationResponseDocument)1