
    (&h                     \    d Z ddlZddlmZmZ  G d de          Zeej        j        d<   dS )z%Multi-part collections of geometries.    N)BaseGeometryBaseMultipartGeometryc                   4    e Zd ZdZg ZddZed             ZdS )GeometryCollectionaG  Collection of one or more geometries that can be of different types.

    Parameters
    ----------
    geoms : list
        A list of shapely geometry instances, which may be of varying geometry
        types.

    Attributes
    ----------
    geoms : sequence
        A sequence of Shapely geometry instances

    Examples
    --------
    Create a GeometryCollection with a Point and a LineString

    >>> from shapely import GeometryCollection, LineString, Point
    >>> p = Point(51, -1)
    >>> l = LineString([(52, -1), (49, 2)])
    >>> gc = GeometryCollection([p, l])

    Nc                     t          |t                    rt          |d          r|j        }n-|g}n)|t	          |          dk    rt          j        d          S t          j        |          S )z Create a new GeometryCollection.geomsNr   zGEOMETRYCOLLECTION EMPTY)
isinstancer   hasattrr   lenshapelyfrom_wktgeometrycollections)selfr   s     V/var/www/html/reinick/venv/lib/python3.11/site-packages/shapely/geometry/collection.py__new__zGeometryCollection.__new__"   sq    e\** 		@ ug&&  ]c%jjAoo#$>???*5111    c                 p    g }| j         D ]}|                    |j                   t          d|          S )z9Return a GeoJSON-like mapping of the geometry collection.r   )type
geometries)r   append__geo_interface__dict)r   r   geoms      r   r   z$GeometryCollection.__geo_interface__1   sH     
J 	6 	6Dd45555-*EEEEr   )N)__name__
__module____qualname____doc__	__slots__r   propertyr    r   r   r   r      sY         0 I2 2 2 2 F F XF F Fr   r      )r   r   shapely.geometry.baser   r   r   libregistryr    r   r   <module>r%      sw    + +  E E E E E E E E0F 0F 0F 0F 0F. 0F 0F 0Ff - Q   r   