Browse files

update readme with google earth export

  • Loading branch information...
afourmy committed Oct 5, 2017
1 parent a71960c commit 29b962c313942158bfe665880fca5b922788d01b
@@ -31,6 +31,12 @@ using the mercator or azimuthal orthographic projections.
![Network GIS visualization](
## Export to Google Earth
Networks can be exported as a .KML file to be displayed on Google Earth, with the same icons and link colors as in pyNMS.
![Google Earth](
## Network algorithmic visualization
GIS visualization can only be done if we have all GPS coordinates: it is not always the case.
Binary file not shown.
@@ -59,7 +59,6 @@ def __init__(self, controller):
# we convert the RGB color to a KML color,
kml_color = "#ff{0:02x}{1:02x}{2:02x}".format(*cls.color[::-1])
line_style.linestyle.color = kml_color
self.styles[subtype] = line_style
@@ -79,7 +78,7 @@ def kml_export(self, _):
point = kml.newpoint(, description=node.description)
point.coords = [(node.longitude, node.latitude)] = self.styles[node.subtype] = float(self.node_size.text()) = 0#float(self.node_size.text())
for link in
line = kml.newlinestring(, description=link.description)
@@ -15,7 +15,7 @@
from collections import OrderedDict
from os.path import join
from .base_view import BaseView
from math import asin, cos, sin, sqrt
from math import asin, cos, radians, sin, sqrt
import shapefile
import shapely.geometry

0 comments on commit 29b962c

Please sign in to comment.