| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 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 : /lib/python3/dist-packages/django/contrib/gis/geos/__pycache__/ |
Upload File : |
�
�|�e� � �^ � d dl mZ d dlmZ d dlmZ d dlmZ d dl m
Z
G d� de
� � ZdS ) � )�c_uint)�gdal)�
prototypes)�
GEOSException)�GEOSGeometryc �t � � e Zd ZdZdZdZd� fd� Z� fd�Z� fd�Z� fd�Z e
d � � � Ze
d
� � � Zd� Z
d� Zd
� Zd� Zd� ZeZed� � � Zej d� � � Zed� � � Zej d� � � Zed� � � Zej d� � � Zed� � � Zej d� � � ZeZ� xZS )�Point� � TNc � �� |�g }n�t |t t f� � r|}nnt |t t f� � rCt |t t f� � r't |t t f� � r|||g}n||g}nt d� � �| � t |� � |� � }t � � � ||�� � dS )a
The Point object may be initialized with either a tuple, or individual
parameters.
For example:
>>> p = Point((5, 23)) # 2D point, passed in as a tuple
>>> p = Point(5, 23, 8) # 3D point, passed in with individual parameters
Nz2Invalid parameters given for Point initialization.)�srid)
�
isinstance�tuple�list�float�int� TypeError�
_create_point�len�super�__init__)�self�x�y�zr
�coords�point� __class__s ��?/usr/lib/python3/dist-packages/django/contrib/gis/geos/point.pyr zPoint.__init__ s� �� �
�9��F�F�
��E�4�=�
)�
)�
R��F�F�
��E�3�<�
(�
(� R�Z��E�3�<�-H�-H� R��!�e�S�\�*�*�
��Q������Q�����P�Q�Q�Q��"�"�3�v�;�;��7�7�� ������T��*�*�*�*�*� c �V �� | j rd nt � � � � � S �N)�emptyr �_to_pickle_wkb�r r s �r r$ zPoint._to_pickle_wkb+ s$ �� ��z�?�t�t�u�w�w�'=�'=�'?�'?�?r c �r �� |�| � � � n t � � � |� � S r"