final Quantity eastQuantity = easting.addNewQuantity(); eastQuantity.setAxisID("x"); final UomPropertyType eastUom = eastQuantity.addNewUom(); final Quantity northQuantity = northing.addNewQuantity(); northQuantity.setAxisID("y"); final UomPropertyType northUom = northQuantity.addNewUom(); final Quantity altiQuantity = altitude.addNewQuantity(); altiQuantity.setAxisID("z"); final UomPropertyType altiUom = altiQuantity.addNewUom();
private VectorType createPositionVector(final String eastingUom, final double eastingCoordValue, final String northingUom, final double northingCoordinateValue) { final VectorType positionVector = VectorType.Factory.newInstance(); final Coordinate easting = positionVector.addNewCoordinate(); easting.setName("easting"); final Quantity eastingValue = easting.addNewQuantity(); eastingValue.setAxisID("x"); eastingValue.addNewUom().setCode(eastingUom); eastingValue.setValue(eastingCoordValue); final Coordinate northing = positionVector.addNewCoordinate(); northing.setName("northing"); final Quantity northingValue = northing.addNewQuantity(); northingValue.setAxisID("y"); northingValue.addNewUom().setCode(northingUom); northingValue.setValue(northingCoordinateValue); return positionVector; }