§
    eÎjÈ  ã                   ó\   — 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     úk/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/shapely/geometry/collection.pyÚ__new__zGeometryCollection.__new__"   sq   € å�e�\Ñ*Ô*ð 		@õ �u˜gÑ&Ô&ð  Øœ��à˜��Øˆ]�c %™jœj¨Ašo˜oåÔ#Ð$>Ñ?Ô?Ð?åÔ*¨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ð 	6ˆDØ×Ò˜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   