add a linestring feature to document

Aug 25, 2015 at 1:31 PM
How can I add more than one coordinate to a linestring?
From the documentation:

public LineString(Google.Kml.coordinates coordinates_)
public coordinates(double latitude, double longitude)

It seems like a linestring is created using only one coordinate which doesn't make sense.

I want to get an object like this:
<Placemark>
<name>test</name>
<LineString>
  <extrude>1</extrude>
  <tessellate>1</tessellate>
  <coordinates>
    -122.364383,37.824664,0 -122.364152,37.824322,0
  </coordinates>
</LineString>
</Placemark>
Aug 25, 2015 at 1:52 PM
Sorry, I used an older version from NuGet.
BTW, this is not updated with the new version
Aug 5, 2016 at 1:26 PM
Edited Aug 5, 2016 at 1:28 PM
You can create a SharpKml.Dom.CoordinateCollection object, add multiple SharpKml.Base.Vector objects to it, and then set the SharpKml.Dom.LineString object coordinates to the CoordinateCollection object.