fixed rounding bug in locus/orux waypoint reading
This commit is contained in:
parent
037ab7d734
commit
cd8082f2b2
4 changed files with 26 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue