down show sites outside of the map
[infrastructure.git] / tunings-myplc / plc-map.py
index 0ea737a..601b74a 100755 (executable)
@@ -44,6 +44,9 @@ def main ():
         if site['longitude'] is not None and site['latitude'] is not None:
             px=float(longitude['left']-site['longitude'])/float(longitude['left']-longitude['right'])
             py=float(latitude['top']-site['latitude'])/float(latitude['top']-latitude['bottom'])
+            if (px=0 or py=0 or px=1 or py=1)
+                continue
+            
             circle(image,px,py,sx,sy,cIn,cOut)
 
     image.save (live)