OwlCyberSecurity - MANAGER
Edit File: point.cpython-39.pyc
a jH�f� � @ sP d dl mZ d dlmZ d dlmZ d dlmZ d dl m Z G dd� de �ZdS ) � )�c_uint)�gdal)� prototypes)� GEOSException)�GEOSGeometryc s� e Zd ZdZdZdZd'� fdd� Z� fdd�Z� fd d �Z� fdd�Z e d d� �Ze dd� �Zdd� Z dd� Zdd� Zdd� Zdd� ZeZedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �ZeZ� ZS )(�Point� � TNc s� |du rg }n\t |ttf�r"|}nHt |ttf�rbt |ttf�rbt |ttf�rX|||g}qj||g}ntd��| �t|�|�}t� j ||d� 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__� �_/home/gouroczh/virtualenv/test/3.9/lib/python3.9/site-packages/django/contrib/gis/geos/point.pyr s zPoint.__init__c s | j r d S t� �� S �N)�emptyr �_to_pickle_wkb�r r r r r! + s zPoint._to_pickle_wkbc s |d u r| � � S t� �|�S r )� _create_emptyr �_from_pickle_wkb)r Zwkbr r r r$ . s zPoint._from_pickle_wkbc s | j rtjj�� S t� �� S r )r r Z geometriesr r# r �_ogr_ptrr"