o
    i                     @   s   d Z G dd dZdS )zL
A collection of utility routines and classes used by the spatial
backends.
c                   @   s2   e Zd ZdZdZd	ddZedd Zdd ZdS )
SpatialOperatorzY
    Class encapsulating the behavior specific to a GIS operation (used by lookups).
    Nc                 C   s   || _ || _d S )Nopfunc)selfr   r    r   d/var/www/html/formularioweb/env/lib/python3.10/site-packages/django/contrib/gis/db/backends/utils.py__init__   s   
zSpatialOperator.__init__c                 C   s   | j rdS dS )Nz%(func)s(%(lhs)s, %(rhs)s)z%(lhs)s %(op)s %(rhs)s)r   )r   r   r   r   default_template   s   z SpatialOperator.default_templatec                 C   s2   | j p|j p| j}|| j| jd || |fS )Nr   )sql_templater	   updater   r   )r   
connectionlookuptemplate_params
sql_paramsr
   r   r   r   as_sql   s   zSpatialOperator.as_sql)NN)	__name__
__module____qualname____doc__r
   r   propertyr	   r   r   r   r   r   r      s    

r   N)r   r   r   r   r   r   <module>   s    