Search in sources :

Example 1 with DataArrayProperty

use of org.geotoolkit.swe.xml.DataArrayProperty in project geotoolkit by Geomatys.

the class OMUtils method buildObservation.

public static AbstractObservation buildObservation(final String obsid, final SamplingFeature sf, final Phenomenon phenomenon, final Process procedure, final int count, final AbstractDataRecord datarecord, final MeasureStringBuilder sb, final TemporalGeometricPrimitive time) {
    final DataArrayProperty result = SOSXmlFactory.buildDataArrayProperty("2.0.0", "array-1", count, "SimpleDataArray", datarecord, DEFAULT_ENCODING, sb.getString(), null);
    final FeatureProperty foi = SOSXmlFactory.buildFeatureProperty("2.0.0", sf);
    return // version
    OMXmlFactory.buildObservation(// version
    "2.0.0", // id
    obsid, // name
    obsid, // description
    null, // foi
    foi, // phenomenon
    phenomenon, // procedure
    procedure, // result
    result, time, null);
}
Also used : DataArrayProperty(org.geotoolkit.swe.xml.DataArrayProperty) FeatureProperty(org.geotoolkit.gml.xml.FeatureProperty)

Example 2 with DataArrayProperty

use of org.geotoolkit.swe.xml.DataArrayProperty in project geotoolkit by Geomatys.

the class OMUtils method buildObservation.

public static AbstractObservation buildObservation(final String obsid, final SamplingFeature sf, final Phenomenon phenomenon, final Process procedure, final int count, final AbstractDataRecord datarecord, final List<Object> dataValues, final TemporalGeometricPrimitive time) {
    final DataArrayProperty result = SOSXmlFactory.buildDataArrayProperty("2.0.0", "array-1", count, "SimpleDataArray", datarecord, DEFAULT_ENCODING, null, dataValues);
    final FeatureProperty foi = SOSXmlFactory.buildFeatureProperty("2.0.0", sf);
    return // version
    OMXmlFactory.buildObservation(// version
    "2.0.0", // id
    obsid, // name
    obsid, // description
    null, // foi
    foi, // phenomenon
    phenomenon, // procedure
    procedure, // result
    result, time, null);
}
Also used : DataArrayProperty(org.geotoolkit.swe.xml.DataArrayProperty) FeatureProperty(org.geotoolkit.gml.xml.FeatureProperty)

Aggregations

FeatureProperty (org.geotoolkit.gml.xml.FeatureProperty)2 DataArrayProperty (org.geotoolkit.swe.xml.DataArrayProperty)2