use of net.opengis.samplingSpecimen.x20.SFSpecimenType.Size in project arctic-sea by 52North.
the class SpecimenEncoderv20 method addSize.
private void addSize(SFSpecimenType sfst, SfSpecimen specimen) {
if (specimen.isSetSize()) {
Size size = sfst.addNewSize();
size.setDoubleValue(specimen.getSize().getValue().doubleValue());
if (specimen.getSize().isSetUnit()) {
size.setUom(specimen.getSize().getUnit());
}
}
}
Aggregations