Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
python3
/
dist-packages
/
django
/
contrib
/
gis
/
geos
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: prepared.cpython-310.pyc
o ���_' � @ s, d dl mZ d dlmZ G dd� de�ZdS )� )�GEOSBase)�preparedc @ sl e Zd ZdZejZejZdd� Z dd� Z dd� Zdd � Zd d� Z dd � Zdd� Zdd� Zdd� Zdd� ZdS )�PreparedGeometryz� A geometry that is prepared for performing certain operations. At the moment this includes the contains covers, and intersects operations. c C s2 || _ ddlm} t||�st�t�|j�| _d S )Nr )�GEOSGeometry)� _base_geom�geometryr � isinstance� TypeError�capi�geos_prepare�ptr)�self�geomr � r �B/usr/lib/python3/dist-packages/django/contrib/gis/geos/prepared.py�__init__ s zPreparedGeometry.__init__c C � t �| j|j�S �N)r �prepared_containsr �r �otherr r r �contains � zPreparedGeometry.containsc C r r )r �prepared_contains_properlyr r r r r �contains_properly r z"PreparedGeometry.contains_properlyc C r r )r �prepared_coversr r r r r �covers r zPreparedGeometry.coversc C r r )r �prepared_intersectsr r r r r � intersects! r zPreparedGeometry.intersectsc C r r )r �prepared_crossesr r r r r �crosses$ r zPreparedGeometry.crossesc C r r )r �prepared_disjointr r r r r �disjoint'