* Gets the xyz values from the given elements and returns the corresponding Vec3D
* @param elements - List<Element>
* @return GmlLocation
*/
private static GmlLocation getGmlLocation(List<Element> elements) {
GmlLocation loc = new GmlLocation();
for (Element e : elements) {
String name = e.getName();
String value = e.getValue();
try {
if (name.equalsIgnoreCase("alt")) {
loc.setLat(Long.parseLong(value));
}
else if (name.equalsIgnoreCase("y")) {
loc.setLon(Long.parseLong(value));
}
else if (name.equalsIgnoreCase("z")) {
loc.setAlt(Long.parseLong(value));
}
}
catch (NumberFormatException ex) {
LOGGER.log(Level.WARNING, ex.getMessage());
}