+
    Tj                         R t ^ RIHt ^ RIHtHt ^ RIHt ^ RI	H
t
Ht ^ RIHt ^ RIHt  ! R R]4      t ! R	 R
]4      t ! R R]]4      t ! R R]4      t]]]
]]]]3]n        R# )zw
This module houses the Geometry Collection objects:
GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon
)
prototypes)GEOSGeometryLinearGeometryMixin)GEOM_PTR)
LinearRing
LineString)Point)Polygonc                      a a ] tR t^t o^tV 3R ltR tR tR tR t	R t
R t]P                  t]P                  t]R 4       t]R	 4       t]tR
tVtV ;t# )GeometryCollectionc                  < \        V4      ^8X  d1   \        V^ ,          \        \        34      '       d   V^ ,          pMTpMTpV P	                  V4       V P                  \        V4      V4      p\        SV `  ! V3/ VB  R# )zEInitialize a Geometry Collection from a sequence of Geometry objects.N)len
isinstancetuplelist_check_allowed_create_collectionsuper__init__)selfargskwargs
init_geoms
collection	__class__s   &*,  X/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/geos/collections.pyr   GeometryCollection.__init__   st     t9> $q'E4=11!!W
!
J 	J' ,,S_jI
.v.    c              #  X   "   \        \        V 4      4       F  pW,          x  K  	  R# 5i)z-Iterate over each Geometry in the Collection.N)ranger   )r   is   & r   __iter__GeometryCollection.__iter__&   s     s4y!A'M "s   (*c                    V P                   # )z3Return the number of geometries in this Collection.)num_geomr   s   &r   __len__GeometryCollection.__len__+   s    }}r   c                    \         V,          ! V Uu. uF$  p\        P                  ! \        VR V4      4      NK&  	  up!  p\        P                  ! V P
                  WA4      # u upi )ptr)r   capi
geom_clonegetattrcreate_collection_typeid)r   lengthitemsggeomss   &&&  r   r   %GeometryCollection._create_collection0   s`    F"
 	 A 5! 45	
 %%dllEBBs   *A"c                D    \         P                  ! V P                  V4      # N)r*   	get_geomnr)   r   indexs   &&r   _get_single_internal'GeometryCollection._get_single_internal<   s    ~~dhh..r   c                v    \        \        P                  ! V P                  V4      4      V P                  R7      # )zH
Return the Geometry from this Collection at the given index (0-based).
)srid)r   r*   r+   r9   r<   r7   s   &&r   _get_single_external'GeometryCollection._get_single_external?   s.    
 OOD55e<=DII
 	
r   c                    V P                   pV P                  pV P                  W4      V n         V'       d   W@n        \        P                  ! V4       R# )zL
Create a new collection, and destroy the contents of the previous
pointer.
N)r)   r<   r   r*   destroy_geom)r   r/   r0   prev_ptrr<   s   &&&  r   	_set_listGeometryCollection._set_listH   s>    
 88yy**69I(#r   c                @    RRP                  R V  4       4      ,          # )z,Return the KML for this Geometry Collection.z!<MultiGeometry>%s</MultiGeometry> c              3   8   "   T F  qP                   x  K  	  R # 5ir5   )kml.0r1   s   & r   	<genexpr>)GeometryCollection.kml.<locals>.<genexpr>Z   s     <QDqUUD   )joinr%   s   &r   rG   GeometryCollection.kmlW   s     3RWW<QD<Q5QQQr   c                Z    \         ;QJ d    . R V  4       F  NK  	  5# ! R V  4       4      # )zAReturn a tuple of all the coordinates in this Geometry Collectionc              3   8   "   T F  qP                   x  K  	  R # 5ir5   r   rH   s   & r   rJ   +GeometryCollection.tuple.<locals>.<genexpr>_   s     +dWWdrL   rQ   r%   s   &r   r   GeometryCollection.tuple\   s&     u+d+u+u+d+++r   )r)   r<   )__name__
__module____qualname____firstlineno__r.   r   r!   r&   r   r9   r=   rB   r   _set_single_rebuild_set_single_assign_extended_slice_rebuild_assign_extended_slicepropertyrG   r   coords__static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r   r      sx     G/*


C/

$ 22K)HHR R , , FFr   r   c                       ] tR t^et]t^tRtR# )
MultiPoint N)rT   rU   rV   rW   r   _allowedr.   r^   rd   r   r   rc   rc   e   s    HGr   rc   c                   "    ] tR t^jt]]3t^tRtR# )MultiLineStringrd   N)	rT   rU   rV   rW   r   r   re   r.   r^   rd   r   r   rg   rg   j   s    J'HGr   rg   c                       ] tR t^ot]t^tRtR# )MultiPolygonrd   N)rT   rU   rV   rW   r	   re   r.   r^   rd   r   r   ri   ri   o   s    HGr   ri   N)__doc__django.contrib.gis.geosr   r*    django.contrib.gis.geos.geometryr   r   django.contrib.gis.geos.libgeosr   "django.contrib.gis.geos.linestringr   r   django.contrib.gis.geos.pointr   django.contrib.gis.geos.polygonr	   r   rc   rg   ri   re   rd   r   r   <module>rq      sy   
 7 N 4 E / 3S Sn# 
)+= 
%  
  r   