Calculate dots from kml