Avoid error if missing poi name
This commit is contained in:
parent
cdac1cc5aa
commit
93b8d36675
@ -244,6 +244,9 @@ public class ServerHandler extends RequestHandler {
|
|||||||
{
|
{
|
||||||
String[] lonLatName = lonLatNameList[i].split(",");
|
String[] lonLatName = lonLatNameList[i].split(",");
|
||||||
|
|
||||||
|
if (lonLatName.length != 3)
|
||||||
|
continue;
|
||||||
|
|
||||||
OsmNodeNamed n = new OsmNodeNamed();
|
OsmNodeNamed n = new OsmNodeNamed();
|
||||||
n.ilon = (int)( ( Double.parseDouble(lonLatName[0]) + 180. ) *1000000. + 0.5);
|
n.ilon = (int)( ( Double.parseDouble(lonLatName[0]) + 180. ) *1000000. + 0.5);
|
||||||
n.ilat = (int)( ( Double.parseDouble(lonLatName[1]) + 90. ) *1000000. + 0.5);
|
n.ilat = (int)( ( Double.parseDouble(lonLatName[1]) + 90. ) *1000000. + 0.5);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user