code: public static void writeLineString(ByteWriter writer, LineString lineString)
  			throws IOException {
  
  		writer.writeInt(lineString.numPoints());
  
  		for (Point point : lineString.getPoints()) {
  			writePoint(writer, point);
  		}
  	}
docs: Write a Line String
  
  @param writer
  @param lineString
  @throws IOException