|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/contrib/gis/geos/ |
Upload File : |
�
r�\c @ sz d d l m Z d d l m Z d d l m Z d d l m Z d d l m
Z
d d l m Z d e f d � � YZ
d S(
i����( t c_uint( t
GEOSException( t GEOSGeometry( t
prototypes( t six( t xranget Pointc B s� e Z d Z d Z d d d d � Z d � Z d � Z d � Z d � Z d � Z
d � Z e Z d � Z
d
� Z d � Z d � Z d
� Z d � Z e e
e � Z e e e � Z e e e � Z d � Z d � Z e e e � Z e Z RS( i i c C s� t | t t f � r* t | � } | } n� t | t j t f � r� t | t j t f � r� t | t j t f � r� d } | | | g } q� d } | | g } n t d � � | j | | � } t t
| � j | d | �d S( s
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
i i s2 Invalid parameters given for Point initialization.t sridN( t
isinstancet tuplet listt lenR t
integer_typest floatt TypeErrort
_create_pointt superR t __init__( t selft xt yt zR t ndimt coordst point( ( s? /tmp/pip-install-XxeQeY/django/django/contrib/gis/geos/point.pyR s 2c C s� | d k s | d k r1 t d t | � � � n t j t d � t | � � } t | � } t j | d t | � � t j | d t | � � | d k r� t j | d t | � � n t j
| � S( sO
Create a coordinate sequence, set X, Y, [Z], and create point
i i s Invalid point dimension: %si i ( R t strt capit create_csR t itert cs_setxt nextt cs_setyt cs_setzt create_point( R R R t cst i( ( s? /tmp/pip-install-XxeQeY/django/django/contrib/gis/geos/point.pyR * s c C sN | j | | � } | r>