class_docstr: A collection of one or more Polygons.
  
  If component polygons overlap the collection is invalid and some
  operations on it may fail.
  
  Parameters
  ----------
  polygons : sequence
      A sequence of Polygons, or a sequence of (shell, holes) tuples
      where shell is the sequence representation of a linear ring
      (see LinearRing) and holes is a sequence of such linear rings.
  
  Attributes
  ----------
  geoms : sequence
      A sequence of `Polygon` instances
  
  Examples
  --------
  Construct a MultiPolygon from a sequence of coordinate tuples
  
  >>> from shapely import Polygon
  >>> ob = MultiPolygon([
  ...     (
  ...     ((0.0, 0.0), (0.0, 1.0), (1.0, 1.0), (1.0, 0.0)),
  ...     [((0.1,0.1), (0.1,0.2), (0.2,0.2), (0.2,0.1))]
  ...     )
  ... ])
  >>> len(ob.geoms)
  1
  >>> type(ob.geoms[0]) == Polygon
  True
docstr: Returns group of SVG path elements for the MultiPolygon geometry.
  
  Parameters
  ==========
  scale_factor : float
      Multiplication factor for the SVG stroke-width.  Default is 1.
  fill_color : str, optional
      Hex string for fill 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.6
docstr_tok: ["Returns","group","of","SVG","path","elements","for","the","MultiPolygon","geometry",".","Parameters","==========","scale_factor",":","float","Multiplication","factor","for","the","SVG","stroke-width",".","Default","is","1.","fill_color",":","str",",","optional","Hex","string","for","fill","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.6"]
code: def svg(self, scale_factor=1.0, fill_color=None, opacity=None):
      """Returns group of SVG path elements for the MultiPolygon geometry.
  
      Parameters
      ==========
      scale_factor : float
          Multiplication factor for the SVG stroke-width.  Default is 1.
      fill_color : str, optional
          Hex string for fill 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.6
      """
      if self.is_empty:
          return "<g />"
      if fill_color is None:
          fill_color = "#66cc99" if self.is_valid else "#ff3333"
      return (
          "<g>"
          + "".join(
              p.svg(scale_factor, fill_color, opacity)
              for p in self.geoms
          )
          + "</g>"
      )
  
file_path: shapely/shapely/geometry/multipolygon.py
imports: import shapely
  from shapely.geometry import polygon
  from shapely.geometry.base import BaseMultipartGeometry
label_desc: Use image node_id 3 for calling the MultiPolygon obj's underlying member method code with example usage: obj.svg(scale_factor, fill_color, opacity) and returns: unknown, str