|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/contrib/gis/db/models/sql/ |
Upload File : |
� r�\c @ s� d d l Td d l m Z d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����( t *( t GeometryFieldt GeoAggregatec B s5 e Z d Z d Z e Z d e d d � Z d � Z RS( s %(function)s(%(field)s)g�������?c K sM t t | � j | | | | � | | _ t | j t � sI t d � � n d S( Ns6 Geospatial aggregates only allowed on geometry fields.( t superR t __init__t tolerancet isinstancet sourceR t ValueError( t selft colR t is_summaryR t extra( ( sM /tmp/pip-install-XxeQeY/django/django/contrib/gis/db/models/sql/aggregates.pyR s c C s� | j j r | j | j d <n g } t | j d � rU | j j | | � \ } } nO t | j t t f � r� d j g | j D] } | | � ^ q} � } n | j } | j j | � \ } } i | d 6| d 6} | j | j � | | | f S( s6 Return the aggregate, rendered as SQL with parameters.R t as_sqlt .t functiont field( t opst oracleR R t hasattrR R R t listt tuplet joint spatial_aggregate_sqlt update( R t qnt connectiont paramst field_namet ct sql_templatet sql_functiont substitutions( ( sM /tmp/pip-install-XxeQeY/django/django/contrib/gis/db/models/sql/aggregates.pyR s . N( t __name__t __module__R t Nonet conversion_classt Falset is_extentR R ( ( ( sM /tmp/pip-install-XxeQeY/django/django/contrib/gis/db/models/sql/aggregates.pyR s t Collectc B s e Z RS( ( R! R"