phyghtpmap - cannot convert float NaN to integer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

phyghtpmap - cannot convert float NaN to integer

Marek Greško
Hello,

I would like to ask whether this is a bug of phyghtmap or in some
libraries used by it.

I have self made python3-phyghtmap-2.20 rpm installed on fedora 28
system and I get the following error:

Traceback (most recent call last):
  File "/usr/bin/phyghtmap", line 11, in <module>
    load_entry_point('phyghtmap==2.20', 'console_scripts', 'phyghtmap')()
  File "/usr/lib/python3.6/site-packages/phyghtmap/main.py", line 696, in main
    checkPoly=checkPoly))
  File "/usr/lib/python3.6/site-packages/phyghtmap/main.py", line 489,
in processHgtFile
    elevations, output.timestampString, opts)
  File "/usr/lib/python3.6/site-packages/phyghtmap/main.py", line 390,
in writeNodes
    return pbfUtil.writeNodes(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/phyghtmap/pbfUtil.py", line
414, in writeNodes
    newNodes, newWays = _makeNodesWays(contourList, elevation, IDCounter)
  File "/usr/lib/python3.6/site-packages/phyghtmap/pbfUtil.py", line
396, in _makeNodesWays
    newNodes, nodeRefs = _makePoints(path, elevation, IDCounter)
  File "/usr/lib/python3.6/site-packages/phyghtmap/pbfUtil.py", line
383, in _makePoints
    nodes.append((int(lon*NANO), int(lat*NANO)))
ValueError: cannot convert float NaN to integer

Do you have any idea how to fix it?

Thanks.

Marek
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: phyghtpmap - cannot convert float NaN to integer

Gerd Petermann
Hi Marek,

I suggest to contact the author of phyghtmap.

Gerd

________________________________________
Von: mkgmap-dev <[hidden email]> im Auftrag von Marek Greško <[hidden email]>
Gesendet: Donnerstag, 23. August 2018 22:21
An: [hidden email]
Betreff: [mkgmap-dev] phyghtpmap - cannot convert float NaN to integer

Hello,

I would like to ask whether this is a bug of phyghtmap or in some
libraries used by it.

I have self made python3-phyghtmap-2.20 rpm installed on fedora 28
system and I get the following error:

Traceback (most recent call last):
  File "/usr/bin/phyghtmap", line 11, in <module>
    load_entry_point('phyghtmap==2.20', 'console_scripts', 'phyghtmap')()
  File "/usr/lib/python3.6/site-packages/phyghtmap/main.py", line 696, in main
    checkPoly=checkPoly))
  File "/usr/lib/python3.6/site-packages/phyghtmap/main.py", line 489,
in processHgtFile
    elevations, output.timestampString, opts)
  File "/usr/lib/python3.6/site-packages/phyghtmap/main.py", line 390,
in writeNodes
    return pbfUtil.writeNodes(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/phyghtmap/pbfUtil.py", line
414, in writeNodes
    newNodes, newWays = _makeNodesWays(contourList, elevation, IDCounter)
  File "/usr/lib/python3.6/site-packages/phyghtmap/pbfUtil.py", line
396, in _makeNodesWays
    newNodes, nodeRefs = _makePoints(path, elevation, IDCounter)
  File "/usr/lib/python3.6/site-packages/phyghtmap/pbfUtil.py", line
383, in _makePoints
    nodes.append((int(lon*NANO), int(lat*NANO)))
ValueError: cannot convert float NaN to integer

Do you have any idea how to fix it?

Thanks.

Marek
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev