Link to home
Start Free TrialLog in
Avatar of allelopath
allelopath

asked on

Line segment between 2 points

I have to lat/lon Points. I want to draw a line segment between the 2, but I don't see functionality in Google Earth to do this. LineString is not it. Surely I am missing something.
Avatar of Chris H
Chris H
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of Chris H
Chris H
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of allelopath
allelopath

ASKER

My apologies. I did not state the question correctly. I am writing a kml manually (towards creating it programmitically in Python).  I have this, but the LineString doesn't work as I would hope. Either I have the LineString data incorrect, or it can't do what I want.

<kml xmlns:ns="http://earth.google.com/kml/2.0">
  <Folder>
    <open>1</open>
    <Placemark>
      <Point>
        <coordinates>-107.980362141, 31.872060174</coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <Point>
        <coordinates>-107.963280345, 31.80230482</coordinates>
      </Point>
    </Placemark>
    <Placemark>
      <LineString>
        <extrude>1</extrude>
        <tessellate>1</tessellate>
        <coordinates>-107.980362141, 31.872060174, 0  -107.963280345, 31.80230482, 0</coordinates>
      </LineString>
    </Placemark>
  </Folder>
</kml>

Open in new window

The answer is that their cannot be spaces in the tuples for each coordinate, only between coordinates themselves.