Search in sources :

Example 6 with FeaturePropertyType

use of net.opengis.gml.x32.FeaturePropertyType in project arctic-sea by 52North.

the class GmlDecoderv321 method parseFeatureCollectionType.

private FeatureCollection parseFeatureCollectionType(FeatureCollectionType featureCollectionType) throws DecodingException {
    final FeatureCollection feaColl = new FeatureCollection();
    for (FeaturePropertyType feaPropType : featureCollectionType.getFeatureMemberArray()) {
        Object decoded = decodeXmlElement(feaPropType);
        feaColl.addMember((AbstractFeature) decoded);
    }
    return feaColl;
}
Also used : FeatureCollection(org.n52.shetland.ogc.om.features.FeatureCollection) XmlObject(org.apache.xmlbeans.XmlObject) FeaturePropertyType(net.opengis.gml.x32.FeaturePropertyType)

Aggregations

FeaturePropertyType (net.opengis.gml.x32.FeaturePropertyType)6 XmlObject (org.apache.xmlbeans.XmlObject)5 AbstractFeature (org.n52.shetland.ogc.gml.AbstractFeature)2 AbstractSamplingFeature (org.n52.shetland.ogc.om.features.samplingFeatures.AbstractSamplingFeature)2 SamplingFeature (org.n52.shetland.ogc.om.features.samplingFeatures.SamplingFeature)2 ArrayList (java.util.ArrayList)1 FeatureCollectionDocument (net.opengis.gml.x32.FeatureCollectionDocument)1 FeatureCollectionType (net.opengis.gml.x32.FeatureCollectionType)1 RelatedFeature (net.opengis.swes.x20.InsertSensorType.RelatedFeature)1 XmlException (org.apache.xmlbeans.XmlException)1 LineString (org.locationtech.jts.geom.LineString)1 MultiLineString (org.locationtech.jts.geom.MultiLineString)1 CodeType (org.n52.shetland.ogc.gml.CodeType)1 CodeWithAuthority (org.n52.shetland.ogc.gml.CodeWithAuthority)1 FeatureCollection (org.n52.shetland.ogc.om.features.FeatureCollection)1 OwsServiceCommunicationObject (org.n52.shetland.ogc.ows.service.OwsServiceCommunicationObject)1 DescribedObject (org.n52.shetland.ogc.sensorML.v20.DescribedObject)1 SmlFeatureOfInterest (org.n52.shetland.ogc.sensorML.v20.SmlFeatureOfInterest)1 SwesFeatureRelationship (org.n52.shetland.ogc.swes.SwesFeatureRelationship)1 DecoderResponseUnsupportedException (org.n52.svalbard.decode.exception.DecoderResponseUnsupportedException)1