mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
EFA: Fix coordinates in <itdCoordinateBaseElemList> parsed too big by factor 1E6.
This commit is contained in:
parent
bb5314f7ec
commit
0210b4b219
1 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue