Reference 〉 Function

PatchesGeo.add(shapelist[tuple]|shapely.Polygon, namestrNone)

Adds a polygonal patch to the map.

Parameters

  • shape list[tuple]|shapely.Polygon, required

    A list of (x,y) tuples defining a polygon, or a Shapely Polygon object. MultiPolygon objects are not supported.

  • name str, optional

    A name for the patch. If specified, the patch can be retrieved with model.patches[name].

    Default value: None

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.