File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/django/contrib/gis/db/backends/base/__pycache__/operations.cpython-310.pyc
Back
o �h� � @ sZ d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl mZ G dd� d�ZdS ) � )� GeometryField)�Distance)�Area)�NotSupportedError)�cached_propertyc s� e Zd ZdZdZdZdZdZdZdZ e dd� �ZdZdZ i Zh d�ZdZd d � Zdd� Zd d� Zdd� Zdd� Zdd� Z� fdd�Zdd� Zdd� Zdd� Zdd� Zee�Z� fdd �Zd!d"� Z d#d$� Z!d%d&� Z"� Z#S )'�BaseSpatialOperationsFN�%sc C s | j S �N)�select��self� r �d/usr/local/CyberPanel/lib/python3.10/site-packages/django/contrib/gis/db/backends/base/operations.py� select_extent s z#BaseSpatialOperations.select_extentr � >! r �AsGML�AsKML�AsSVG�Scale�Union�Length�Azimuth�FromWKB�FromWKT�GeoHash�IsEmpty�IsValid�MemSize�Reverse�Centroidr �Envelope� AsGeoJSON� MakeValid� NumPoints� Perimeter� Transform� Translate� Difference� SnapToGrid�Intersection� NumGeometries� SymDifference�BoundingCircle�PointOnSurface�LineLocatePoint�GeometryDistancec C � t d��)Nz:Aggregate extent not implemented for this spatial backend.��NotImplementedError�r �box�sridr r r �convert_extentM � �z$BaseSpatialOperations.convert_extentc C r0 )Nz=Aggregate 3D extent not implemented for this spatial backend.r1 r3 r r r �convert_extent3dR r7 z&BaseSpatialOperations.convert_extent3dc C s d| S )Nz'%s'r )r �namer r r �geo_quote_nameX s z$BaseSpatialOperations.geo_quote_namec C r0 )zh Return the database column type for the geometry field on the spatial backend. zGsubclasses of BaseSpatialOperations must provide a geo_db_type() methodr1 )r �fr r r �geo_db_type\ � �z!BaseSpatialOperations.geo_db_typec C r0 )zu Return the distance parameters for the given geometry field, lookup value, and lookup type. z:Distance operations not available on this spatial backend.r1 )r r; �value�lookup_typer r r �get_distancee r= z"BaseSpatialOperations.get_distancec C s� dd� }t |d�r||j|�rd| �d�|jf S dS |||�r.d| �d�| j|j|jf S | jjjr;d| j|jf S d | j S ) a Return the placeholder for the given geometry field with the given value. Depending on the spatial backend, the placeholder may contain a stored procedure call to the transformation function of the spatial backend. c S s | d uo | j |j kS r )r5 )r>