fixed rounding bug in locus/orux waypoint reading

This commit is contained in:
Arndt 2016-05-21 08:09:19 +02:00
parent 037ab7d734
commit cd8082f2b2
4 changed files with 26 additions and 10 deletions

View file

@ -51,8 +51,8 @@ public class CoordinateReaderLocus extends CoordinateReader
OsmNodeNamed n = new OsmNodeNamed();
String category = c.getString(0);
n.name = c.getString(1);
n.ilon = (int)( ( Double.parseDouble( c.getString(2) ) + 180. )*1000000. + 0.5);
n.ilat = (int)( ( Double.parseDouble( c.getString(3) ) + 90. )*1000000. + 0.5);
n.ilon = (int)( ( c.getDouble(2) + 180. )*1000000. + 0.5);
n.ilat = (int)( ( c.getDouble(3) + 90. )*1000000. + 0.5);
checkAddPoint( category, n );
}
myDataBase.close();

View file

@ -49,8 +49,8 @@ public class CoordinateReaderOrux extends CoordinateReader
{
OsmNodeNamed n = new OsmNodeNamed();
n.name = c.getString(0);
n.ilon = (int)( ( Double.parseDouble( c.getString(1) ) + 180. )*1000000. + 0.5);
n.ilat = (int)( ( Double.parseDouble( c.getString(2) ) + 90. )*1000000. + 0.5);
n.ilon = (int)( ( c.getDouble(1) + 180. )*1000000. + 0.5);
n.ilat = (int)( ( c.getDouble(2) + 90. )*1000000. + 0.5);
String category = c.getString(3);
checkAddPoint( category, n );
}