/usr/local/lib/python3.9/site-packages/django/contrib/gis/db/models/__pycache__
a Ӱ�h� � @ s� d dl mZmZmZmZ d dlmZmZ d dlm Z g d�Z G dd� de�ZG dd� de�ZG d d � d e�Z G dd� de�ZG d d� de�ZG dd� de�ZdS )� )�ExtentField�GeometryCollectionField� GeometryField�LineStringField)� Aggregate�Value)�cached_property)�Collect�Extent�Extent3D�MakeLine�Unionc sH e Zd ZdZdZedd� �Zd� fdd� Zdd� Zd � fd d� Z � Z S )�GeoAggregateNFc C s | � | jd jj�S )Nr )�output_field_classZsource_expressions�output_fieldZsrid)�self� r �Q/usr/local/lib/python3.9/site-packages/django/contrib/gis/db/models/aggregates.pyr s zGeoAggregate.output_fieldc s4 |j �| � t� j||fd|p*|j �| j�i|��S )N�function)�opsZcheck_expression_support�super�as_sqlZspatial_aggregate_name�name)r �compiler� connectionr � extra_context�� __class__r r r s ���zGeoAggregate.as_sqlc K sp | j s\| j�d�pt| dd�}| �� }|�g | �� �t|��� d}|j||fd|i|��S | j||fi |��S )N� toleranceg�������?z*%(function)s(SDOAGGRTYPE(%(expressions)s))�template) � is_extent�extra�get�getattr�copyZset_source_expressions�get_source_expressionsr r )r r r r r �cloner r r r � as_oracle s&