use of org.geotoolkit.swe.xml.AnyScalar in project geotoolkit by Geomatys.
the class OMUtils method getDataRecordTrajectory.
public static AbstractDataRecord getDataRecordTrajectory(final String version, final List<? extends Field> phenomenons) {
final List<AnyScalar> fields = new ArrayList<>();
fields.add(TIME_FIELD.get(version));
fields.add(LATITUDE_FIELD.get(version));
fields.add(LONGITUDE_FIELD.get(version));
for (Field phenomenon : phenomenons) {
final UomProperty uom = SOSXmlFactory.buildUomProperty(version, phenomenon.uom, null);
final Quantity cat = SOSXmlFactory.buildQuantity(version, phenomenon.name, uom, null);
fields.add(SOSXmlFactory.buildAnyScalar(version, null, phenomenon.name, cat));
}
return SOSXmlFactory.buildSimpleDatarecord(version, null, null, null, true, fields);
}
use of org.geotoolkit.swe.xml.AnyScalar in project geotoolkit by Geomatys.
the class OMUtils method getDataRecordProfile.
public static AbstractDataRecord getDataRecordProfile(final String version, final List<? extends Field> phenomenons) {
final List<AnyScalar> fields = new ArrayList<>();
fields.add(PRESSION_FIELD.get(version));
for (Field phenomenon : phenomenons) {
final UomProperty uom = SOSXmlFactory.buildUomProperty(version, phenomenon.uom, null);
final Quantity cat = SOSXmlFactory.buildQuantity(version, phenomenon.name, uom, null);
fields.add(SOSXmlFactory.buildAnyScalar(version, null, phenomenon.name, cat));
}
return SOSXmlFactory.buildSimpleDatarecord(version, null, null, null, true, fields);
}
use of org.geotoolkit.swe.xml.AnyScalar in project geotoolkit by Geomatys.
the class OMUtils method getDataRecordTimeSeries.
public static AbstractDataRecord getDataRecordTimeSeries(final String version, final List<? extends Field> phenomenons) {
final List<AnyScalar> fields = new ArrayList<>();
fields.add(TIME_FIELD.get(version));
for (Field phenomenon : phenomenons) {
final UomProperty uom = SOSXmlFactory.buildUomProperty(version, phenomenon.uom, null);
final Quantity cat = SOSXmlFactory.buildQuantity(version, phenomenon.name, uom, null);
fields.add(SOSXmlFactory.buildAnyScalar(version, null, phenomenon.name, cat));
}
return SOSXmlFactory.buildSimpleDatarecord(version, null, null, null, true, fields);
}
Aggregations