
    _ h                     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)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.geomsr   zGEOMETRYCOLLECTION EMPTY)
isinstancer   hasattrr   lenshapelyfrom_wktgeometrycollections)selfr   s     w/home/developers/rajanand/mypropertyqr-fmb-refixing-v2/venv/lib/python3.12/site-packages/shapely/geometry/collection.py__new__zGeometryCollection.__new__"   sZ    e\* ug&]c%jAo##$>??**511    c                 x    g }| j                   D ]  }|j                  |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   s>     
JJ 	6Dd445	6-*EEr   )N)__name__
__module____qualname____doc__	__slots__r   propertyr    r   r   r   r      s)    0 I2 F Fr   r      )r   r   shapely.geometry.baser   r   r   libregistryr    r   r   <module>r%      s4    +  E0F. 0Ff -  Q r   