From eacecfc4a8a78648e573213339625ac75b3d6a40 Mon Sep 17 00:00:00 2001 From: Bertil Chapuis Date: Sun, 29 Oct 2023 17:22:08 +0100 Subject: [PATCH] Fix lon/lat inversion in change reader --- .../baremaps/openstreetmap/xml/XmlChangeSpliterator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/baremaps-core/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java b/baremaps-core/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java index dbb6b9b73..9830d5baf 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/openstreetmap/xml/XmlChangeSpliterator.java @@ -155,8 +155,8 @@ private Element readElement() throws XMLStreamException { private Node readNode() throws XMLStreamException { long id = Long.parseLong(reader.getAttributeValue(null, ATTRIBUTE_NAME_ID)); Info info = readInfo(); - double latitude = Double.parseDouble(reader.getAttributeValue(null, ATTRIBUTE_NAME_LATITUDE)); - double longitude = Double.parseDouble(reader.getAttributeValue(null, ATTRIBUTE_NAME_LONGITUDE)); + double lat = Double.parseDouble(reader.getAttributeValue(null, ATTRIBUTE_NAME_LATITUDE)); + double lon = Double.parseDouble(reader.getAttributeValue(null, ATTRIBUTE_NAME_LONGITUDE)); // read the content of the node Map tags = new HashMap<>(); @@ -172,7 +172,7 @@ private Node readNode() throws XMLStreamException { } } - return new Node(id, info, tags, latitude, longitude); + return new Node(id, info, tags, lon, lat); } private Way readWay() throws XMLStreamException {