File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/django/contrib/gis/geos/__pycache__/prepared.cpython-310.pyc
Back
o �h) � @ 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 �V/usr/local/CyberPanel/lib/python3.10/site-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&