Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/django/contrib/gis/geos/__pycache__/ |
Upload File : |
o 3�a7 � @ s� d Z ddlmZmZmZ ddlmZ ddlm Z m Z ddlmZ ddl mZmZ ddlmZ ddlmZ G d d � d e �ZG dd� de�ZG d d� de e�ZG dd� 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 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__� �E/usr/lib/python3/dist-packages/django/contrib/gis/geos/collections.pyr s zGeometryCollection.__init__c c s"