+
    ûwéjì!  ã                   óÀ   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
Ht ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHt  ! R R]4      t ! R R]]4      tR# )z\
SQL functions reference lists:
https://www.gaia-gis.it/gaia-sins/spatialite-sql-4.3.0.html
)Úmodels)ÚBaseSpatialOperations)ÚSpatiaLiteAdapter)ÚSpatialOperator)ÚGEOSGeometryÚGEOSGeometryBase)Úwkb_r)ÚDistance)ÚImproperlyConfigured)ÚDatabaseOperations)Úcached_property)Úget_version_tuplec                   ó2   a a€ ] tR t^t oV 3R ltRtVtV ;t# )ÚSpatialiteNullCheckOperatorc                ó>   <€ \         SV `  WW44      w  rVR V,          V3# )z%s > 0)ÚsuperÚas_sql)ÚselfÚ
connectionÚlookupÚtemplate_paramsÚ
sql_paramsÚsqlÚparamsÚ	__class__s   &&&&&  €ÚkD:\Novelx\Nexus_chitfund_web\venv\Lib\site-packages\django/contrib/gis/db/backends/spatialite/operations.pyr   Ú"SpatialiteNullCheckOperator.as_sql   s$   ø€ Ü‘g‘n Z¸ÓU‰ˆØ˜#�~˜vÐ%Ð%ó    © )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   Ú__classdict__s   @@r   r   r      s   ù‡ € ÷&õ &r   r   c                   ól  a € ] tR t^t o RtRt]tRtRt	Rt
RtRt/ R]! R	R
7      bR]! RR
7      bR]! RR
7      bR]! RR
7      bR]! RR
7      bR]! RR
7      bR]! RR
7      bR]! RR
7      bR]! RR
7      bR]! RR
7      bR]! RR
7      bR]! R R
7      bR!]! R"R
7      bR#]! R$R
7      bR%]! R	R
7      bR&]! R	R
7      bR']! R(R
7      bt]P"                  3tR)tR*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9R:R;R<R=R>R?R@RARBRCRDRE/t]RF 4       t]RG 4       tRH tRI tRJ tRK tRL tRM tRN tRO tRP t RQ t!RR t"RS t#RT t$RU t%RV t&RWt'V t(RX# )YÚSpatiaLiteOperationsÚ
spatialiteTÚCollectÚExtentÚMakeLineÚGUnionÚGeomFromTextÚequalsÚEquals)ÚfuncÚdisjointÚDisjointÚtouchesÚTouchesÚcrossesÚCrossesÚwithinÚWithinÚoverlapsÚOverlapsÚcontainsÚContainsÚ
intersectsÚ
IntersectsÚrelateÚRelateÚ	coveredbyÚ	CoveredByÚcoversÚCoversÚ	containedÚ	MbrWithinÚ
bbcontainsÚMbrContainsÚ
bboverlapsÚMbrOverlapsÚsame_asÚexactÚdwithinÚPtDistWithinzCAST (AsEWKB(%s) AS BLOB)ÚAsWKBÚSt_AsBinaryÚBoundingCircleÚGEOSMinimumBoundingCircleÚForcePolygonCWÚST_ForceLHRÚFromWKBÚST_GeomFromWKBÚFromWKTÚST_GeomFromTextÚIsEmptyÚ
ST_IsEmptyÚLengthÚ	ST_LengthÚLineLocatePointÚST_Line_Locate_PointÚNumDimensionsÚST_NDimsÚ	NumPointsÚ
ST_NPointsÚReverseÚ
ST_ReverseÚScaleÚScaleCoordsÚ	TranslateÚST_TranslateÚUnionÚST_Unionc                ó†   € 0 RmpV P                  4       '       g   V0 Rm,          pV P                  R8  d   VR0,          pV# )ÚGeometryDistancerR   >   ÚRotateÚMemSizerm   >   ÚAzimuthÚGeoHashÚ	MakeValid)é   é   )Úgeom_lib_versionÚspatial_version)r   Úunsupporteds   & r   Úunsupported_functionsÚ*SpatiaLiteOperations.unsupported_functionsW   sC   € â?ˆØ×$Ñ$×&Ò&ØÒ>Õ>ˆKØ×Ñ &Ô(ØÐ,Ð-Õ-ˆKØÐr   c                óØ   €  V P                  4       R,          pTR8  d   \        R4      hT#   \         d2   p\        RT P                  P                  R,          : R24      ThRp?ii ; i)z0Determine the version of the SpatiaLite library.:rt   NNz1Cannot determine the SpatiaLite version for the "ÚNAMEzJ" database. Was the SpatiaLite initialization SQL loaded on this database?Nz.GeoDjango supports SpatiaLite 4.3.0 and above.)é   é   é    )Úspatialite_version_tupleÚ	Exceptionr
   r   Úsettings_dict)r   ÚversionÚexcs   &  r   rv   Ú$SpatiaLiteOperations.spatial_version`   su   € ð	Ø×3Ñ3Ó5°bÕ9ˆGð �YÔÜ&Ð'WÓXÐXØˆøô ô 	Ý&ð —?‘?×0Ñ0°×8Ð8ð;óð ð	ûð	ús   ‚- ­A)¸,A$Á$A)c                óˆ   € Vf   R# \        V4      P                  pV^ ,          R,          w  r4V^,          R,          w  rVW4WV3# )zF
Convert the polygon data received from SpatiaLite to min/max values.
N:Né   N)r   Úshell)r   Úboxr‡   ÚxminÚyminÚxmaxÚymaxs   &&     r   Úconvert_extentÚ#SpatiaLiteOperations.convert_extento   sE   € ð Š;ÙÜ˜SÓ!×'Ñ'ˆØ˜1•X˜b•\‰
ˆØ˜1•X˜b•\‰
ˆØ˜DÐ'Ð'r   c                ó   € R# )zl
Return None because geometry columns are added via the
`AddGeometryColumn` stored procedure on SpatiaLite.
Nr   )r   Úfs   &&r   Úgeo_db_typeÚ SpatiaLiteOperations.geo_db_typez   s   € ñ
 r   c                ó\  € V'       g   . # V^ ,          p\        V\        4      '       d€   VP                  V P                  4      '       d"   VR8X  d   \	        R4      hVP
                  pV.# \        V\        P                  ! VP                  V P                  4      4      4      p V.# TpV.# )z]
Return the distance parameters for the given geometry field,
lookup value, and lookup type.
rN   zNOnly numeric values of degree units are allowed on geographic DWithin queries.)	Ú
isinstancer	   Úgeodeticr   Ú
ValueErrorÚmÚgetattrÚunit_attnameÚ
units_name)r   r�   ÚvalueÚlookup_typeÚ
dist_params   &&&& r   Úget_distanceÚ!SpatiaLiteOperations.get_distance�   s¦   € ÷
 ØˆIØ�a•ˆÜ�eœX×&Ò&Ø�z‰z˜$Ÿ/™/×*Ò*Ø )Ô+Ü$ð6óð ð #ŸW™W�
ð ˆ|Ðô %Øœ8×0Ò0°·±¸d¿o¹oÓ1NÓOó‘
ð
 ˆ|Ðð ˆJØˆ|Ðr   c                óä   € V P                   P                  4       p VP                  RV,          4       VP                  4       pVP	                  4        V^ ,          #   TP	                  4        i ; i)z‘
Helper routine for calling SpatiaLite functions and returning
their result.
Any error occurring in this method should be handled by the caller.
z	SELECT %s)r   Ú_cursorÚexecuteÚfetchoneÚclose)r   r1   ÚcursorÚrows   &&  r   Ú_get_spatialite_funcÚ)SpatiaLiteOperations._get_spatialite_func™   sW   € ð —‘×(Ñ(Ó*ˆð	Ø�N‰N˜;¨Õ-Ô.Ø—/‘/Ó#ˆCà�L‰LŒNØ�1�vˆøð �L‰L�Nús   œ(A ÁA/c                ó$   € V P                  R4      # )z:Return the version of GEOS used by SpatiaLite as a string.zgeos_version()©r§   ©r   s   &r   Úgeos_versionÚ!SpatiaLiteOperations.geos_version§   s   € à×(Ñ(Ð)9Ó:Ð:r   c                ó$   € V P                  R4      # )z:Return the version of the PROJ library used by SpatiaLite.zproj4_version()rª   r«   s   &r   Úproj_versionÚ!SpatiaLiteOperations.proj_version«   s   € à×(Ñ(Ð):Ó;Ð;r   c                ó$   € V P                  R4      # )z8Return the version of LWGEOM library used by SpatiaLite.zlwgeom_version()rª   r«   s   &r   Úlwgeom_versionÚ#SpatiaLiteOperations.lwgeom_version¯   ó   € à×(Ñ(Ð);Ó<Ð<r   c                ó$   € V P                  R4      # )z8Return the version of RTTOPO library used by SpatiaLite.zrttopo_version()rª   r«   s   &r   Úrttopo_versionÚ#SpatiaLiteOperations.rttopo_version³   r´   r   c                ód   € V P                   R8¼  d   V P                  4       # V P                  4       # )zN
Return the version of the version-dependent geom library used by
SpatiaLite.
)rs   )rv   r¶   r²   r«   s   &r   ru   Ú%SpatiaLiteOperations.geom_lib_version·   s0   € ð
 ×Ñ 4Ô'Ø×&Ñ&Ó(Ð(à×&Ñ&Ó(Ð(r   c                ó$   € V P                  R4      # )z2Return the SpatiaLite library version as a string.zspatialite_version()rª   r«   s   &r   Úspatialite_versionÚ'SpatiaLiteOperations.spatialite_versionÁ   s   € à×(Ñ(Ð)?Ó@Ð@r   c                ó@   € V P                  4       pV.\        V4      O5# )zT
Return the SpatiaLite version as a tuple (version string, major,
minor, subminor).
)r»   r   )r   r‚   s   & r   r   Ú-SpatiaLiteOperations.spatialite_version_tupleÅ   s&   € ð
 ×)Ñ)Ó+ˆØÐ5Ô+¨GÓ4Ñ5Ð5r   c                óf   € VP                  4       R8X  d   RMVP                  4       p\        W4      # )zZ
Return the spatial aggregate SQL template and function for the
given Aggregate instance.
ÚunionÚunionagg)Úlowerr˜   )r   Úagg_names   &&r   Úspatial_aggregate_nameÚ+SpatiaLiteOperations.spatial_aggregate_nameÍ   s+   € ð
 "*§¡Ó!1°WÔ!<‘:À(Ç.Á.ÓBRˆÜ�tÓ&Ð&r   c                ó   € ^ RI Hp V# )r~   )ÚSpatialiteGeometryColumns)Ú0django.contrib.gis.db.backends.spatialite.modelsrÇ   )r   rÇ   s   & r   Úgeometry_columnsÚ%SpatiaLiteOperations.geometry_columnsÖ   s   € õ	
ð )Ð(r   c                ó   € ^ RI Hp V# )r~   )ÚSpatialiteSpatialRefSys)rÈ   rÌ   )r   rÌ   s   & r   Úspatial_ref_sysÚ$SpatiaLiteOperations.spatial_ref_sysÝ   s   € õ	
ð 'Ð&r   c                ól   aa€ VP                   P                  o\        4       P                  oVV3R  lpV# )c                 ó8   <€ V e   \        S! V R R7      S4      # R # )N)Úmax_geom_collections)r   )r›   Ú
expressionr   Ú
geom_classÚreads   &&&€€r   Ú	converterÚ>SpatiaLiteOperations.get_geometry_converter.<locals>.converterè   s'   ø€ ØÒ Ü'Ù˜°TÔ:¸Jóð ñ !r   )Úoutput_fieldrÓ   r   rÔ   )r   rÒ   rÕ   rÓ   rÔ   s   && @@r   Úget_geometry_converterÚ+SpatiaLiteOperations.get_geometry_converterä   s,   ù€ Ø×,Ñ,×7Ñ7ˆ
Ü‹w�|‰|ˆö	ð Ðr   r   N))r   r    r!   r"   Únamer)   r   ÚAdapterÚcollectÚextentÚmakelinerÁ   Ú	from_textr   r   Úgis_operatorsr   ÚExtent3DÚdisallowed_aggregatesÚselectÚfunction_namesr   rx   rv   r�   r‘   rž   r§   r¬   r¯   r²   r¶   ru   r»   r   rÄ   rÉ   rÍ   rØ   r#   r$   )r&   s   @r   r(   r(      s@  ø‡ € Ø€DØ€Jà€Gà€GØ€FØ€HØ€Hà€IðàÑ-°8Ô<ðð 	Ñ/°ZÔ@ðð 	Ñ.°IÔ>ð	ð
 	Ñ.°IÔ>ðð 	Ñ-°8Ô<ðð 	Ñ/°ZÔ@ðð 	Ñ/°ZÔ@ðð 	Ñ1°|ÔDðð 	Ñ-°8Ô<ðð 	Ñ0°kÔBðð 	Ñ-°8Ô<ðð 	‘_¨+Ô6ðð$ 	‘o¨=Ô9ð%ð( 	‘o¨=Ô9ð)ð, 	Ñ.°HÔ=ð-ð. 	Ñ,°(Ô;ð/ð2 	‘?¨Ô7ð3€Mð8 $Ÿ_™_Ð.Ðà(€Fð 	�ØÐ5Ø˜-ØÐ#ØÐ$Ø�<Ø�+ØÐ1Ø˜Ø�\Ø�<Ø�Ø�^Ø�ð€Nð" ñó ðð ñó ðò	(òòò0ò;ò<ò=ò=ò)òAò6ò'ò)ò'÷
ð 
r   r(   N)Ú__doc__Údjango.contrib.gis.dbr   Ú.django.contrib.gis.db.backends.base.operationsr   Ú1django.contrib.gis.db.backends.spatialite.adapterr   Ú$django.contrib.gis.db.backends.utilsr   Ú django.contrib.gis.geos.geometryr   r   Ú%django.contrib.gis.geos.prototypes.ior   Údjango.contrib.gis.measurer	   Údjango.core.exceptionsr
   Ú%django.db.backends.sqlite3.operationsr   Údjango.utils.functionalr   Údjango.utils.versionr   r   r(   r   r   r   Ú<module>rñ      sK   ðñõ
 )Ý PÝ OÝ @ß KÝ 7Ý /Ý 7Ý DÝ 3Ý 2ô& /ô &ôUÐ0Ð2Dö Ur   