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);
}
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);
}
Aggregations