The MultiPolygon constructor takes a sequence of exterior ring and hole list tuples: [((a1, …, aM), [(b1, …, bN), …]), …].
复合多边形构造函数接收外部线环和内部线环(洞)两组序列元祖。
More clearly, the constructor also accepts an unordered sequence of Polygon instances, thereby making copies.
构造函数同样也接收接受一个无序的Polygon实例序列,从而得到一个副本。
>>> from shapely import MultiPolygon
>>> polygons = MultiPolygon([polygon, s, t])
>>> len(polygons.geoms)
3
(Source code, png, hires.png, pdf)
Its x-y bounding box is a (minx, miny, maxx, maxy)
tuple.
其边界是一个元组(minx, miny, maxx, maxy)。
>>> polygons.bounds
(-1.0, -1.0, 2.0, 2.0)
Its members are instances of Polygon and are accessed via the geoms
property.
其成员是Polygon实例,可以通过geoms属性访问。
>>> len(polygons.geoms)
3