
    Dvg)                     :    d dl mZ d dlmZ  G d de          ZdS )   )GEOSBase)preparedc                   j    e Zd ZdZej        Zej        Zd Z	d Z
d Zd Zd Zd Zd Zd	 Zd
 Zd ZdS )PreparedGeometryz
    A geometry that is prepared for performing certain operations.
    At the moment this includes the contains covers, and intersects
    operations.
    c                     || _         ddlm} t          ||          st          t          j        |j                  | _        d S )Nr   )GEOSGeometry)
_base_geomgeometryr   
isinstance	TypeErrorcapigeos_prepareptr)selfgeomr   s      ]/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/django/contrib/gis/geos/prepared.py__init__zPreparedGeometry.__init__   sL     ******$-- 	O$TX..    c                 @    t          j        | j        |j                  S N)r   prepared_containsr   r   others     r   containszPreparedGeometry.contains       %dh	:::r   c                 @    t          j        | j        |j                  S r   )r   prepared_contains_properlyr   r   s     r   contains_properlyz"PreparedGeometry.contains_properly   s    .txCCCr   c                 @    t          j        | j        |j                  S r   )r   prepared_coversr   r   s     r   coverszPreparedGeometry.covers        #DHei888r   c                 @    t          j        | j        |j                  S r   )r   prepared_intersectsr   r   s     r   
intersectszPreparedGeometry.intersects#   s    '%)<<<r   c                 @    t          j        | j        |j                  S r   )r   prepared_crossesr   r   s     r   crosseszPreparedGeometry.crosses&       $TXuy999r   c                 @    t          j        | j        |j                  S r   )r   prepared_disjointr   r   s     r   disjointzPreparedGeometry.disjoint)   r   r   c                 @    t          j        | j        |j                  S r   )r   prepared_overlapsr   r   s     r   overlapszPreparedGeometry.overlaps,   r   r   c                 @    t          j        | j        |j                  S r   )r   prepared_touchesr   r   s     r   toucheszPreparedGeometry.touches/   r)   r   c                 @    t          j        | j        |j                  S r   )r   prepared_withinr   r   s     r   withinzPreparedGeometry.within2   r"   r   N)__name__
__module____qualname____doc__r   PREPGEOM_PTRptr_typeprepared_destroy
destructorr   r   r   r!   r%   r(   r,   r/   r2   r5    r   r   r   r      s           H&J	/ 	/ 	/; ; ;D D D9 9 9= = =: : :; ; ;; ; ;: : :9 9 9 9 9r   r   N)baser   
prototypesr   r   r   r>   r   r   <module>rA      s]          ( ( ( ( ( (.9 .9 .9 .9 .9x .9 .9 .9 .9 .9r   