
    h)                     2    S SK Jr  S SKJr   " S S\5      rg)   )GEOSBase)preparedc                       \ rS rSrSr\R                  r\R                  r	S r
S rS rS rS rS rS	 rS
 rS rS rSrg)PreparedGeometry   z
A geometry that is prepared for performing certain operations.
At the moment this includes the contains covers, and intersects
operations.
c                     Xl         SSKJn  [        X5      (       d  [        e[
        R                  " UR                  5      U l        g )Nr   )GEOSGeometry)
_base_geomgeometryr	   
isinstance	TypeErrorcapigeos_prepareptr)selfgeomr	   s      R/var/www/html/env/lib/python3.13/site-packages/django/contrib/gis/geos/prepared.py__init__PreparedGeometry.__init__   s2     *$--O$$TXX.    c                 X    [         R                  " U R                  UR                  5      $ N)r   prepared_containsr   r   others     r   containsPreparedGeometry.contains       %%dhh		::r   c                 X    [         R                  " U R                  UR                  5      $ r   )r   prepared_contains_properlyr   r   s     r   contains_properly"PreparedGeometry.contains_properly   s    ..txxCCr   c                 X    [         R                  " U R                  UR                  5      $ r   )r   prepared_coversr   r   s     r   coversPreparedGeometry.covers        ##DHHeii88r   c                 X    [         R                  " U R                  UR                  5      $ r   )r   prepared_intersectsr   r   s     r   
intersectsPreparedGeometry.intersects#   s    ''%))<<r   c                 X    [         R                  " U R                  UR                  5      $ r   )r   prepared_crossesr   r   s     r   crossesPreparedGeometry.crosses&       $$TXXuyy99r   c                 X    [         R                  " U R                  UR                  5      $ r   )r   prepared_disjointr   r   s     r   disjointPreparedGeometry.disjoint)   r   r   c                 X    [         R                  " U R                  UR                  5      $ r   )r   prepared_overlapsr   r   s     r   overlapsPreparedGeometry.overlaps,   r   r   c                 X    [         R                  " U R                  UR                  5      $ r   )r   prepared_touchesr   r   s     r   touchesPreparedGeometry.touches/   r0   r   c                 X    [         R                  " U R                  UR                  5      $ r   )r   prepared_withinr   r   s     r   withinPreparedGeometry.within2   r'   r   )r
   r   N)__name__
__module____qualname____firstlineno____doc__r   PREPGEOM_PTRptr_typeprepared_destroy
destructorr   r   r!   r%   r*   r.   r3   r7   r;   r?   __static_attributes__ r   r   r   r      sR       H&&J	/;D9=:;;:9r   r   N)baser   
prototypesr   r   r   rK   r   r   <module>rN      s     (.9x .9r   