(self, scale_factor=1., stroke_color=None)
return (
            '<polyline fill="none" stroke="{2}" stroke-width="{1}" '
            'points="{0}" opacity="0.8" />'
            ).format(pnt_format, 2. * scale_factor, stroke_color)
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.
Returns SVG polyline element for the LineString geometry.
Returns SVG polyline element for the LineString geometry .
def svg(self, scale_factor=1., stroke_color=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.
        """
        if self.is_empty:
            return '<g />'
        if stroke_color is None:
            stroke_color = "#66cc99" if self.is_valid else "#ff3333"
        pnt_format = " ".join(["{0},{1}".format(*c) for c in self.coords])
        return (
            '<polyline fill="none" stroke="{2}" stroke-width="{1}" '
            'points="{0}" opacity="0.8" />'
            ).format(pnt_format, 2. * scale_factor, stroke_color)
def svg ( self , scale_factor = 1. , stroke_color = None ) : if self . is_empty : return '<g />' if stroke_color is None : stroke_color = "#66cc99" if self . is_valid else "#ff3333" pnt_format = " " . join ( [ "{0},{1}" . format ( * c ) for c in self . coords ] ) return ( '<polyline fill="none" stroke="{2}" stroke-width="{1}" ' 'points="{0}" opacity="0.8" />' ) . format ( pnt_format , 2. * scale_factor , stroke_color )