Merge pull request #308 from bagage/fix-empty-poi
Avoid error if missing poi name
This commit is contained in:
commit
85f9df6cb9
@ -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