File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/django/contrib/gis/geos/__pycache__/collections.cpython-310.pyc
Back
o �hd � @ s� d Z ddlmZ ddlmZmZ ddlmZ ddl m Z mZ ddlm Z ddlmZ G dd � d e�ZG d d� de�ZG dd � d ee�ZG dd� de�Ze ee eeeefe_dS )zy This module houses the Geometry Collection objects: GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon � )� prototypes)�GEOSGeometry�LinearGeometryMixin)�GEOM_PTR)� LinearRing� LineString)�Point)�Polygonc sx e Zd ZdZ� fdd�Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z ejZ ejZedd� �Zedd� �ZeZ� ZS )�GeometryCollection� c sd t |�dkrt|d ttf�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__� �Y/usr/local/CyberPanel/lib/python3.10/site-packages/django/contrib/gis/geos/collections.pyr s zGeometryCollection.__init__c c s"