[weather] UKMET: fix parsing of station location

parent 12d1d35f
......@@ -656,7 +656,8 @@ void UKMETIon::parseWeatherObservation(const QString& source, WeatherData& data,
} else if (elementName == QLatin1String("long")) {
const QString ordinate = xml.readElementText();
data.longitude = ordinate.toDouble();
} else if (elementName == QLatin1String("georss:point")) {
} else if (elementName == QLatin1String("point") &&
xml.namespaceUri() == QLatin1String("http://www.georss.org/georss")) {
const QStringList ordinates = xml.readElementText().split(QLatin1Char(' '));
data.latitude = ordinates[0].toDouble();
data.longitude = ordinates[1].toDouble();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment