| Server IP : 217.160.0.135 / Your IP : 216.73.217.25 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/django/contrib/gis/geos/__pycache__/ |
Upload File : |
�
�|�e7 � � � d Z ddlmZmZmZ ddlmZ ddlm Z m
Z
ddlmZ ddl
mZmZ ddlmZ ddlmZ G d � d
e � � Z G d� de� � Z G d
� de
e� � Z G d� de� � Zeeeeeeefe_ dS )zy
This module houses the Geometry Collection objects:
GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon
� )�byref�c_int�c_uint)�
prototypes)�GEOSGeometry�LinearGeometryMixin)�GEOM_PTR)�
LinearRing�
LineString)�Point)�Polygonc � � � e Zd ZdZ� fd�Zd� Zd� Zd� Zd� Zd� Z d� Z
ej Z
ej Zed � � � Zed
� � � ZeZ� xZS )�GeometryCollection� c �2 �� t |� � dk r.t |d t t f� � r |d }n|}n|}| � |� � | � t |� � |� � } t
� � j |fi |�� dS )zEInitialize a Geometry Collection from a sequence of Geometry objects.� r N)�len�
isinstance�tuple�list�_check_allowed�_create_collection�super�__init__)�self�args�kwargs�
init_geoms�
collection� __class__s ��E/usr/lib/python3/dist-packages/django/contrib/gis/geos/collections.pyr zGeometryCollection.__init__ s� �� � �t�9�9��>�>� �$�q�'�E�4�=�1�1�
"�!�!�W�
�
�!�
�
��J�
���J�'�'�'� �,�,�S��_�_�j�I�I�
�������.�.�v�.�.�.�.�.� c # �\ K � t t | � � � � D ]}| | V � �
dS )z-Iterate over each Geometry in the Collection.N)�ranger )r �is r! �__iter__zGeometryCollection.__iter__'