class_docstr: A geometry type composed of one or more line segments.
  
  A LineString is a one-dimensional feature and has a non-zero length but
  zero area. It may approximate a curve and need not be straight. Unlike a
  LinearRing, a LineString is not closed.
  
  Parameters
  ----------
  coordinates : sequence
      A sequence of (x, y, [,z]) numeric coordinate pairs or triples, or
      an array-like with shape (N, 2) or (N, 3).
      Also can be a sequence of Point objects.
  
  Examples
  --------
  Create a LineString with two segments
  
  >>> a = LineString([[0, 0], [1, 0], [1, 1]])
  >>> a.length
  2.0
docstr: Returns SVG polyline element for the LineString geometry.
  
  Parameters
  ==========
  scale_factor : float
      Multiplication factor for the SVG stroke-width.  Default is 1.
  stroke_color : str, optional
      Hex string for stroke color. Default is to use "#66cc99" if
      geometry is valid, and "#ff3333" if invalid.
  opacity : float
      Float number between 0 and 1 for color opacity. Default value is 0.8
code: def svg(self, scale_factor=1.0, stroke_color=None, opacity=None):
      """Returns SVG polyline element for the LineString geometry.
  
      Parameters
      ==========
      scale_factor : float
          Multiplication factor for the SVG stroke-width.  Default is 1.
      stroke_color : str, optional
          Hex string for stroke color. Default is to use "#66cc99" if
          geometry is valid, and "#ff3333" if invalid.
      opacity : float
          Float number between 0 and 1 for color opacity. Default value is 0.8
      """
      if self.is_empty:
          return "<g />"
      if stroke_color is None:
          stroke_color = "#66cc99" if self.is_valid else "#ff3333"
      if opacity is None:
          opacity = 0.8
      pnt_format = " ".join(["{},{}".format(*c) for c in self.coords])
      return (
          '<polyline fill="none" stroke="{2}" stroke-width="{1}" '
          'points="{0}" opacity="{3}" />'
      ).format(pnt_format, 2.0 * scale_factor, stroke_color, opacity)
  
file_path: shapely/shapely/geometry/linestring.py
imports: import numpy
  import shapely
  from shapely.geometry.base import BaseGeometry, JOIN_STYLE
  from shapely.geometry.point import Point
label_desc: Use image node_id 3 for calling the LineString obj's underlying member method code with example usage: obj.svg(scale_factor, stroke_color, opacity) and returns: str, str