| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/contrib/gis/geos/__pycache__/ |
Upload File : |
�
�|�e' � �: � d dl mZ d dlmZ G d� de� � ZdS )� )�GEOSBase)�preparedc �j � e Zd ZdZej Zej Zd� Z d� Z
d� Zd� Zd� Z
d� Zd� Zd � Zd
� Zd� ZdS )
�PreparedGeometryz�
A geometry that is prepared for performing certain operations.
At the moment this includes the contains covers, and intersects
operations.
c � � || _ ddlm} t ||� � st �t j |j � � | _ d S )Nr )�GEOSGeometry)�
_base_geom�geometryr �
isinstance� TypeError�capi�geos_prepare�ptr)�self�geomr s �B/usr/lib/python3/dist-packages/django/contrib/gis/geos/prepared.py�__init__zPreparedGeometry.__init__ sL � � ���*�*�*�*�*�*��$��-�-� ��O��$�T�X�.�.����� c �@ � t j | j |j � � S �N)r
�prepared_containsr �r �others r �containszPreparedGeometry.contains � � ��%�d�h�� �:�:�:r c �@ � t j | j |j � � S r )r
�prepared_contains_properlyr r s r �contains_properlyz"PreparedGeometry.contains_properly s � ��.�t�x���C�C�Cr c �@ � t j | j |j � � S r )r
�prepared_coversr r s r �coverszPreparedGeometry.covers � � ��#�D�H�e�i�8�8�8r c �@ � t j | j |j � � S r )r
�prepared_intersectsr r s r �
intersectszPreparedGeometry.intersects! s � ��'���%�)�<�<�<r c �@ � t j | j |j � � S r )r
�prepared_crossesr r s r �crosseszPreparedGeometry.crosses$ � � ��$�T�X�u�y�9�9�9r c �@ � t j | j |j � � S r )r
�prepared_disjointr r s r �disjointzPreparedGeometry.disjoint'