mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-08 00:08:49 +00:00
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:
parent
bfdfeb828f
commit
8c7e40b7da
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue