o ºŽÒ_'ã@s,ddlmZddlmZGdd„deƒZdS)é)ÚGEOSBase)Úpreparedc@sleZdZdZejZejZdd„Z dd„Z dd„Z dd „Z d d „Z d d „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. cCs2||_ddlm}t||ƒst‚t |j¡|_dS)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__cCót |j|j¡S©N)r Úprepared_containsr ©r ÚotherrrrÚcontainsózPreparedGeometry.containscCrr)r Úprepared_contains_properlyr rrrrÚcontains_properlyrz"PreparedGeometry.contains_properlycCrr)r Úprepared_coversr rrrrÚcoversrzPreparedGeometry.coverscCrr)r Úprepared_intersectsr rrrrÚ intersects!rzPreparedGeometry.intersectscCrr)r Úprepared_crossesr rrrrÚcrosses$rzPreparedGeometry.crossescCrr)r Úprepared_disjointr rrrrÚdisjoint'rzPreparedGeometry.disjointcCrr)r Úprepared_overlapsr rrrrÚoverlaps*rzPreparedGeometry.overlapscCrr)r Úprepared_touchesr rrrrÚtouches-rzPreparedGeometry.touchescCrr)r Úprepared_withinr rrrrÚwithin0rzPreparedGeometry.withinN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r Ú PREPGEOM_PTRÚptr_typeÚprepared_destroyÚ destructorrrrrrr r"r$r&r(rrrrrs  rN)ÚbaserÚ prototypesrr rrrrrÚs