OwlCyberSecurity - MANAGER
Edit File: prepared.cpython-39.pyc
a ���e) � @ 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||�s t�t�|j�| _d S )Nr )�GEOSGeometry)Z _base_geomZgeometryr � isinstance� TypeError�capiZgeos_prepare�ptr)�selfZgeomr � r �a/home/gouroczh/virtualenv/pat/3.9/lib/python3.9/site-packages/django/contrib/gis/geos/prepared.py�__init__ s zPreparedGeometry.__init__c C s t �| j|j�S �N)r Zprepared_containsr �r �otherr r r �contains s zPreparedGeometry.containsc C s t �| j|j�S r )r Zprepared_contains_properlyr r r r r �contains_properly s z"PreparedGeometry.contains_properlyc C s t �| j|j�S r )r Zprepared_coversr r r r r �covers s zPreparedGeometry.coversc C s t �| j|j�S r )r Zprepared_intersectsr r r r r � intersects# s zPreparedGeometry.intersectsc C s t �| j|j�S r )r Zprepared_crossesr r r r r �crosses&