https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/contrib/gis/db/models/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/contrib/gis/db/models/__pycache__/aggregates.cpython-310.pyc
o

�a�@s�ddlmZmZmZmZddlmZmZddlm	Z	gd�Z
Gdd�de�ZGdd�de�ZGd	d
�d
e�Z
Gdd�de�ZGd
d�de�ZGdd�de�ZdS)�)�ExtentField�GeometryCollectionField�
GeometryField�LineStringField)�	Aggregate�Value)�cached_property)�Collect�Extent�Extent3D�MakeLine�UnioncsHeZdZdZdZedd��Zd�fdd�	Zdd�Zd
�fd
d�	Z	�Z
S)�GeoAggregateNFcCs|�|jdjj�S)Nr)�output_field_class�source_expressions�output_field�srid)�self�r�I/usr/lib/python3/dist-packages/django/contrib/gis/db/models/aggregates.pyrszGeoAggregate.output_fieldcs4|j�|�t�j||fd|p|j�|j�i|��S)N�function)�ops�check_expression_support�super�as_sql�spatial_aggregate_name�name)r�compiler�
connectionr�
extra_context��	__class__rrrs���zGeoAggregate.as_sqlcKsp|js.|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�copy�set_source_expressions�get_source_expressionsrr)rrrrr"�cloner#rrr�	as_oracles��zGeoAggregate.as_oracleTcs:t��|||||�}|��D]}t|jd�std��q|S)N�	geom_typez6Geospatial aggregates only allowed on geometry fields.)r�resolve_expressionr*�hasattr�field�
ValueError)r�query�allow_joins�reuse�	summarize�for_save�c�exprr rrr.)s�zGeoAggregate.resolve_expression�N)NTNFF)�__name__�
__module__�__qualname__rr$rrrr,r.�
__classcell__rrr rr
s
rc@�eZdZdZeZdS)r	N)r:r;r<rrrrrrrr	1�r	c�,eZdZdZdZ�fdd�Zdd�Z�ZS)r
�2Dc�t�j|fdt�i|��dS�Nr�r�__init__r�r�
expressionr%r rrrE:�zExtent.__init__cC�|j�|�Sr9)r�convert_extent�r�valuerGrrrr�
convert_value=�zExtent.convert_value�r:r;r<rr$rErMr=rrr rr
6�
r
cr@)r�3DcrBrCrDrFr rrrEErHzExtent3D.__init__cCrIr9)r�convert_extent3drKrrrrMHrNzExtent3D.convert_valuerOrrr rrArPrc@r>)rN)r:r;r<rrrrrrrrLr?rc@r>)r
N)r:r;r<rrrrrrrr
Qr?r
N)�#django.contrib.gis.db.models.fieldsrrrr�django.db.modelsrr�django.utils.functionalr�__all__rr	r
rrr
rrrr�<module>s'

https://t.me/RX1948 - 2025