Search in sources :

Example 1 with SmlFeatureOfInterest

use of org.n52.shetland.ogc.sensorML.v20.SmlFeatureOfInterest in project arctic-sea by 52North.

the class SensorMLDecoderV20 method parseFeatureOfInterest.

private void parseFeatureOfInterest(FeaturesOfInterest featuresOfInterest, AbstractProcessV20 abstractProcess) throws DecodingException {
    if (CollectionHelper.isNotNullOrEmpty(featuresOfInterest.getFeatureList().getFeatureArray())) {
        SmlFeatureOfInterest smlFeatureOfInterest = new SmlFeatureOfInterest();
        for (FeaturePropertyType fpt : featuresOfInterest.getFeatureList().getFeatureArray()) {
            Object o = decodeXmlElement(fpt);
            if (o instanceof AbstractFeature) {
                smlFeatureOfInterest.addFeatureOfInterest((AbstractFeature) o);
            }
        }
        abstractProcess.setSmlFeatureOfInterest(smlFeatureOfInterest);
    }
}
Also used : SmlFeatureOfInterest(org.n52.shetland.ogc.sensorML.v20.SmlFeatureOfInterest) AbstractFeature(org.n52.shetland.ogc.gml.AbstractFeature) DescribedObject(org.n52.shetland.ogc.sensorML.v20.DescribedObject) XmlObject(org.apache.xmlbeans.XmlObject) FeaturePropertyType(net.opengis.gml.x32.FeaturePropertyType)

Aggregations

FeaturePropertyType (net.opengis.gml.x32.FeaturePropertyType)1 XmlObject (org.apache.xmlbeans.XmlObject)1 AbstractFeature (org.n52.shetland.ogc.gml.AbstractFeature)1 DescribedObject (org.n52.shetland.ogc.sensorML.v20.DescribedObject)1 SmlFeatureOfInterest (org.n52.shetland.ogc.sensorML.v20.SmlFeatureOfInterest)1