
    Og?                     h    d Z ddlZddlmZmZ  G d de      Zeej                  j                  d<   y)z%Multi-part collections of geometries
    N)BaseGeometryBaseMultipartGeometryc                   ,    e Zd ZdZg ZddZed        Zy)GeometryCollectionaN  
    A collection of one or more geometries that may contain more than one type
    of geometry.

    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 LineString, Point
    >>> p = Point(51, -1)
    >>> l = LineString([(52, -1), (49, 2)])
    >>> gc = GeometryCollection([p, l])
    Nc                     |st        j                  d      S t        |t              rt	        |d      r|j
                  }n|g}t        j                  |      S )NzGEOMETRYCOLLECTION EMPTYgeoms)shapelyfrom_wkt
isinstancer   hasattrr   geometrycollections)selfr   s     `/var/www/html/public_html/myphp/venv/lib/python3.12/site-packages/shapely/geometry/collection.py__new__zGeometryCollection.__new__$   sN    ##$>??e\* ug&**511    c                 x    g }| j                   D ]  }|j                  |j                          t        d|      S )Nr   )type
geometries)r   append__geo_interface__dict)r   r   geoms      r   r   z$GeometryCollection.__geo_interface__2   s<    
JJ 	6Dd445	6-*EEr   )N)__name__
__module____qualname____doc__	__slots__r   propertyr    r   r   r   r      s)    2 I2 F Fr   r      )r   r	   shapely.geometry.baser   r   r   libregistryr   r   r   <module>r$      s8     E/F. /Fd -  Q r   