parse float coordinate values

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@754 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-08-24 09:46:21 +00:00
parent bfdfeb828f
commit 8c7e40b7da

View file

@ -1842,7 +1842,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
for (final String coordStr : pp.getText().split(" "))
{
final String[] coordsStr = coordStr.split(",");
path.add(new Point(Integer.parseInt(coordsStr[1]), Integer.parseInt(coordsStr[0])));
path.add(new Point(Math.round(Float.parseFloat(coordsStr[1])), Math.round(Float.parseFloat(coordsStr[0]))));
}
XmlPullUtil.exit(pp, "itdCoordinateString");