code: public static void toKMLLineString(LineString lineString, ExtrudeMode extrude, int altitudeModeEnum, StringBuilder sb) {
          sb.append("<LineString>");
          appendExtrude(extrude, sb);
          appendAltitudeMode(altitudeModeEnum, sb);
          appendKMLCoordinates(lineString.getCoordinates(), sb);
          sb.append("</LineString>");
      }
docs: Defines a connected set of line segments.
  
  Syntax :
  
  <LineString id="ID">
  <!-- specific to LineString -->
  <gx:altitudeOffset>0</gx:altitudeOffset> <!-- double -->
  <extrude>0</extrude> <!-- boolean -->
  <tessellate>0</tessellate> <!-- boolean -->
  <altitudeMode>clampToGround</altitudeMode>
  <!-- kml:altitudeModeEnum: clampToGround, relativeToGround, or absolute
  -->
  <!-- or, substitute gx:altitudeMode: clampToSeaFloor, relativeToSeaFloor
  -->
  <gx:drawOrder>0</gx:drawOrder> <!-- integer -->
  <coordinates>...</coordinates> <!-- lon,lat[,alt] -->
  </LineString>
  
  Supported syntax :
  
  <LineString>
  <extrude>0</extrude>
  <altitudeMode>clampToGround</altitudeMode>
  <coordinates>...</coordinates> <!-- lon,lat[,alt] -->
  </LineString>
  
  @param lineString