Merge pull request #308 from bagage/fix-empty-poi
Avoid error if missing poi name
This commit is contained in:
commit
85f9df6cb9
1 changed files with 3 additions and 0 deletions
|
@ -244,6 +244,9 @@ public class ServerHandler extends RequestHandler {
|
|||
{
|
||||
String[] lonLatName = lonLatNameList[i].split(",");
|
||||
|
||||
if (lonLatName.length != 3)
|
||||
continue;
|
||||
|
||||
OsmNodeNamed n = new OsmNodeNamed();
|
||||
n.ilon = (int)( ( Double.parseDouble(lonLatName[0]) + 180. ) *1000000. + 0.5);
|
||||
n.ilat = (int)( ( Double.parseDouble(lonLatName[1]) + 90. ) *1000000. + 0.5);
|
||||
|
|
Loading…
Reference in a new issue