+
    Tj                     X    ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
  ! R R]
4      tR# )	    )c_uint)gdal)
prototypes)GEOSException)GEOSGeometryc                   |  a a ] tR t^	t o^t^tRtRV 3R lltV 3R ltV 3R lt	V 3R lt
]R 4       t]R 4       tR tR	 tR
 tR tR t]t]R 4       t]P,                  R 4       t]R 4       t]P,                  R 4       t]R 4       t]P,                  R 4       t]R 4       t]P,                  R 4       t]tRtVtV ;t# )PointTc                z  < Vf   . pM\        V\        \        34      '       d   TpMh\        V\        \        34      '       dB   \        V\        \        34      '       d&   \        V\        \        34      '       d   WV.pMW.pM\        R4      hV P                  \        V4      V4      p\        SV `%  WdR7       R# )z
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 as 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   &&&&&  R/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/geos/point.pyr   Point.__init__   s     9FE4=))FE3<((ZE3<-H-H !eS\**PQQ""3v;7 	*    c                H   < V P                   '       d   R # \        SV `	  4       # N)emptyr   _to_pickle_wkbr   r   s   &r   r#   Point._to_pickle_wkb,   s    zzzt?uw'='??r   c                J   < Vf   V P                  4       # \        SV `	  V4      # r!   )_create_emptyr   _from_pickle_wkb)r   wkbr   s   &&r   r(   Point._from_pickle_wkb/   s&    '*{t!!#U8PQT8UUr   c                   < V P                   '       d)   \        P                  P                  P	                  4       # \
        SV `  4       # r!   )r"   r   
geometriesr	   r'   r   _ogr_ptrr$   s   &r   r-   Point._ogr_ptr2   s6    59ZZZDOO!!//1	
EJWEUEW	
r   c                &    V P                  R R 4      # r!   )r   )clss   &r   r'   Point._create_empty7   s      t,,r   c                   V'       g   \         P                  ! R4      # V^8  g   V^8  d   \        RV,          4      h\         P                  ! \	        ^4      \	        V4      4      p\        V4      p\         P                  ! V^ \        V4      4       \         P                  ! V^ \        V4      4       V^8X  d"   \         P                  ! V^ \        V4      4       \         P                  ! V4      # )z?
Create a coordinate sequence, set X, Y, [Z], and create point
NzInvalid point dimension: %s)
capicreate_pointr   	create_csr   itercs_setxnextcs_setycs_setz)r0   ndimr   csis   &&&  r   r   Point._create_point;   s    
 $$T**!8tax9D@AA^^F1Ivd|4LRDG$RDG$19LLQQ(  $$r   c                    V P                  W4      pV'       dO   V P                  p\        P                  ! V P                  4       W0n        Ve   W@n        V P                  4        R # \        R4      h)Nz3Geometry resulting from slice deletion was invalid.)r   r   r3   destroy_geomptr_ptr
_post_initr   )r   lengthitemsrA   r   s   &&&  r   	_set_listPoint._set_listO   sX      /99Ddhh'I 	OO   UVVr   c                @    V P                   P                  V^ V4       R# r   N_cssetOrdinate)r   indexvalues   &&&r   _set_singlePoint._set_single\   s    UAu-r   c              #  X   "   \        \        V 4      4       F  pW,          x  K  	  R# 5i)z'Iterate over coordinates of this Point.N)ranger   )r   r=   s   & r   __iter__Point.__iter___   s     s4y!A'M "s   (*c                V    V P                   '       d   ^ # V P                  '       d   ^# ^# )zBReturn the number of dimensions for this Point (either 0, 2 or 3).)r"   haszr   s   &r   __len__Point.__len__d   s    :::999r   c                x    V^ 8X  d   V P                   # V^8X  d   V P                  # V^8X  d   V P                  # R# rI   )r   r   r   )r   rM   s   &&r   _get_single_externalPoint._get_single_externalm   s7    A:66MaZ66MaZ66M r   c                :    V P                   P                  ^ ^ 4      # )z$Return the X component of the Point.rK   getOrdinaterW   s   &r   r   Point.xw        xx##Aq))r   c                @    V P                   P                  ^ ^ V4       R# )z!Set the X component of the Point.NrJ   r   rN   s   &&r   r   r`   |        	Q5)r   c                :    V P                   P                  ^^ 4      # )z$Return the Y component of the Point.r^   rW   s   &r   r   Point.y   ra   r   c                @    V P                   P                  ^^ V4       R# )z!Set the Y component of the Point.NrJ   rc   s   &&r   r   rf      rd   r   c                b    V P                   '       d   V P                  P                  ^^ 4      # R# )z$Return the Z component of the Point.N)rV   rK   r_   rW   s   &r   r   Point.z   s(     .2YYYtxx##Aq)@D@r   c                z    V P                   '       g   \        R4      hV P                  P                  ^^ V4       R# )z!Set the Z component of the Point.zCannot set Z on 2D Point.N)rV   r   rK   rL   rc   s   &&r   r   ri      s/     yyy ;<<Q5)r   c                .    V P                   P                  # )zReturn a tuple of the point.)rK   r   rW   s   &r   r   Point.tuple   s     xx~~r   c                "    WP                   ^ &   R# )z6Set the coordinates of the point with the given tuple.N)rK   )r   tups   &&r   r   rl      s     r   )rB   r   )NNNN)__name__
__module____qualname____firstlineno__
_minlength
_maxlengthhas_csr   r#   r(   r-   classmethodr'   r   rF   rO   rS   rX   r[   _get_single_internalpropertyr   setterr   r   r   r   __static_attributes____classdictcell____classcell__)r   __classdict__s   @@r   r	   r	   	   s-    JJF+<@V

 - - % %&W.
 0* * XX* * * * XX* * A A XX* *   \\ 
 FFr   r	   N)ctypesr   django.contrib.gisr   django.contrib.gis.geosr   r3   django.contrib.gis.geos.errorr    django.contrib.gis.geos.geometryr   r	    r   r   <module>r      s"     # 6 7 9ZL Zr   