o
    ó<âg)  ã                   @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é   )ÚGEOSBase)Úpreparedc                   @   sl   e Zd ZdZejZejZdd„ Z	dd„ Z
dd„ Zdd	„ Zd
d„ Zdd„ Zdd„ Zdd„ Zdd„ Zd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                 C   s2   || _ ddlm} t||ƒst‚t |j¡| _d S )Nr   )ÚGEOSGeometry)Ú
_base_geomÚgeometryr   Ú
isinstanceÚ	TypeErrorÚcapiÚgeos_prepareÚptr)ÚselfÚgeomr   © r   úS/var/www/html/venv/lib/python3.10/site-packages/django/contrib/gis/geos/prepared.pyÚ__init__   s
   
zPreparedGeometry.__init__c                 C   ó   t  | j|j¡S ©N)r
   Úprepared_containsr   ©r   Úotherr   r   r   Úcontains   ó   zPreparedGeometry.containsc                 C   r   r   )r
   Úprepared_contains_properlyr   r   r   r   r   Úcontains_properly   r   z"PreparedGeometry.contains_properlyc                 C   r   r   )r
   Úprepared_coversr   r   r   r   r   Úcovers    r   zPreparedGeometry.coversc                 C   r   r   )r
   Úprepared_intersectsr   r   r   r   r   Ú
intersects#   r   zPreparedGeometry.intersectsc                 C   r   r   )r
   Úprepared_crossesr   r   r   r   r   Úcrosses&   r   zPreparedGeometry.crossesc                 C   r   r   )r
   Úprepared_disjointr   r   r   r   r   Údisjoint)   r   zPreparedGeometry.disjointc                 C   r   r   )r
   Úprepared_overlapsr   r   r   r   r   Úoverlaps,   r   zPreparedGeometry.overlapsc                 C   r   r   )r
   Úprepared_touchesr   r   r   r   r   Útouches/   r   zPreparedGeometry.touchesc                 C   r   r   )r
   Úprepared_withinr   r   r   r   r   Úwithin2   r   zPreparedGeometry.withinN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   ÚPREPGEOM_PTRÚptr_typeÚprepared_destroyÚ
destructorr   r   r   r   r   r    r"   r$   r&   r(   r   r   r   r   r      s    r   N)Úbaser   Ú
prototypesr   r
   r   r   r   r   r   Ú<module>   s    