Search in sources :

Example 1 with Size

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());
        }
    }
}
Also used : Size(net.opengis.samplingSpecimen.x20.SFSpecimenType.Size)

Aggregations

Size (net.opengis.samplingSpecimen.x20.SFSpecimenType.Size)1