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/geos/__pycache__/ |
Upload File : |
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'