
    rh                         S r  " S S5      rg)zL
A collection of utility routines and classes used by the spatial
backends.
c                   <    \ rS rSrSrSrSS jr\S 5       rS r	Sr
g)	SpatialOperator   zQ
Class encapsulating the behavior specific to a GIS operation (used by lookups).
Nc                     Xl         X l        g )Nopfunc)selfr   r   s      \/var/www/html/shao/venv/lib/python3.13/site-packages/django/contrib/gis/db/backends/utils.py__init__SpatialOperator.__init__   s    	    c                 (    U R                   (       a  gg)Nz%(func)s(%(lhs)s, %(rhs)s)z%(lhs)s %(op)s %(rhs)s)r   )r	   s    r
   default_template SpatialOperator.default_template   s    99/+r   c                     U R                   =(       d    UR                   =(       d    U R                  nUR                  U R                  U R                  S.5        XS-  U4$ )Nr   )sql_templater   updater   r   )r	   
connectionlookuptemplate_params
sql_paramsr   s         r
   as_sqlSpatialOperator.as_sql   sL    ((XF,?,?X4CXCXdggtyyAB-z99r   )r   r   )NN)__name__
__module____qualname____firstlineno____doc__r   r   propertyr   r   __static_attributes__ r   r
   r   r      s,     L , ,:r   r   N)r   r   r!   r   r
   <module>r"      s   : :r   