EFA: Fix coordinates in <itdCoordinateBaseElemList> parsed too big by factor 1E6.

This commit is contained in:
Andreas Schildbach 2015-02-02 23:55:43 +01:00
parent bb5314f7ec
commit 0210b4b219

View file

@ -3103,9 +3103,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
{
XmlPullUtil.enter(pp, "itdCoordinateBaseElem");
final double lon = Double.parseDouble(XmlPullUtil.valueTag(pp, "x"));
final double lat = Double.parseDouble(XmlPullUtil.valueTag(pp, "y"));
path.add(Point.fromDouble(lat, lon));
final int lon = (int) Math.round(Double.parseDouble(XmlPullUtil.valueTag(pp, "x")));
final int lat = (int) Math.round(Double.parseDouble(XmlPullUtil.valueTag(pp, "y")));
path.add(new Point(lat, lon));
XmlPullUtil.skipExit(pp, "itdCoordinateBaseElem");
}