+
    ûwéj‚  ã                   óD   € ^ RI Ht ^ RIHt ^ RIHtHt  ! R R]4      tR# )é    )ÚGeometryField)ÚDatabaseSchemaEditor)ÚColÚFuncc                   ó”   a a€ ] tR t^t oRtRtRtRtRtR t	V 3R lt
RR	/V 3R
 lltV 3R ltRV 3R lltR tV 3R ltR tRtVtV ;t# )ÚPostGISSchemaEditorÚGISTÚGIST_GEOMETRY_OPS_NDzST_ConvexHull(%(expressions)s)zLALTER COLUMN %(column)s TYPE %(type)s USING ST_Force3D(%(column)s)::%(type)szLALTER COLUMN %(column)s TYPE %(type)s USING ST_Force2D(%(column)s)::%(type)sc                óL   € V P                   P                  P                  V4      # ©N)Ú
connectionÚopsÚgeo_quote_name)ÚselfÚnames   &&ÚdD:\Novelx\Nexus_chitfund_web\venv\Lib\site-packages\django/contrib/gis/db/backends/postgis/schema.pyr   Ú"PostGISSchemaEditor.geo_quote_name   s   € Ø�‰×"Ñ"×1Ñ1°$Ó7Ð7ó    c                óL   <€ \        VR R4      '       d   R# \        SV `	  W4      # )Úspatial_indexFT)ÚgetattrÚsuperÚ_field_should_be_indexed)r   ÚmodelÚfieldÚ	__class__s   &&&€r   r   Ú,PostGISSchemaEditor._field_should_be_indexed   s%   ø€ Ü�5˜/¨5×1Ò1ÙÜ‰wÑ/°Ó=Ð=r   ÚfieldsNc               ó¸   <€ Ve*   \        V4      ^8w  g   \        V^ ,          R4      '       g   \        SV `  ! V3RV/VB # V P                  ! W^ ,          3/ VB # )NÚgeodeticr   )ÚlenÚhasattrr   Ú_create_index_sqlÚ_create_spatial_index_sql)r   r   r   Úkwargsr   s   &&$,€r   r#   Ú%PostGISSchemaEditor._create_index_sql   sW   ø€ ØŠ>œS ›[¨AÔ-´W¸VÀA½YÈ
×5SÒ5SÜ‘7Ò,¨UÑL¸6ÐLÀVÑLÐLà×-Ò-¨e¸AµYÑIÀ&ÑIÐIr   c                óš  <€ \        VR4      '       d   \        VR4      '       g   \        SV `	  WW4WV4      # VP                  ^8X  d   VP                  ^8X  d   V P                  pM;VP                  ^8X  d   VP                  ^8X  d   V P
                  pMV P                  pVRV P                  VP                  4      RVRR/,          . 3. 3# )z&
Special case when dimension changed.
ÚdimÚcolumnÚtypeÚ	collationÚ )	r"   r   Ú_alter_column_type_sqlr(   Úsql_alter_column_to_3dÚsql_alter_column_to_2dÚsql_alter_column_typeÚ
quote_namer)   )	r   ÚtableÚ	old_fieldÚ	new_fieldÚnew_typeÚold_collationÚnew_collationÚ	sql_alterr   s	   &&&&&&& €r   r-   Ú*PostGISSchemaEditor._alter_column_type_sql    sÎ   ø€ ô �y %×(Ò(´¸	À5×0IÒ0IÜ‘7Ñ1Ø )°}óð ð �=‰=˜AÔ )§-¡-°1Ô"4Ø×3Ñ3‰IØ�]‰]˜aÔ I§M¡M°QÔ$6Ø×3Ñ3‰Ià×2Ñ2ˆIð à˜dŸo™o¨i×.>Ñ.>Ó?Ø˜HØ ðõð ðð ð
ð 	
r   c	                ó’  <€ \         SV `  VVVVVVVVR 7       \        V\        4      ;'       d    VP                  p	\        V\        4      ;'       d    VP                  p
V	'       g+   V
'       d#   V P                  V P                  W4      4       R# V	'       d-   V
'       g#   V P                  V P                  W4      4       R# R# R# ))ÚstrictN)r   Ú_alter_fieldÚ
isinstancer   r   Úexecuter$   Ú_delete_spatial_index_sql)r   r   r3   r4   Úold_typer5   Úold_db_paramsÚnew_db_paramsr;   Úold_field_spatial_indexÚnew_field_spatial_indexr   s   &&&&&&&&&  €r   r<   Ú PostGISSchemaEditor._alter_field>   s²   ø€ ô 	‰ÑØØØØØØØØð 	ô 		
ô �y¤-Ó0×LÐL°Y×5LÑ5Lð 	 ô �y¤-Ó0×LÐL°Y×5LÑ5Lð 	 ÷ '×+BØ�L‰L˜×7Ñ7¸ÓIÖJß$×-DØ�L‰L˜×7Ñ7¸ÓIÖJñ .EÑ$r   c                óf   € V P                  VP                  P                  VP                  .R 4      # )Ú_id)Ú_create_index_nameÚ_metaÚdb_tabler)   )r   r   r   s   &&&r   Ú_create_spatial_index_nameÚ.PostGISSchemaEditor._create_spatial_index_name_   s'   € Ø×&Ñ& u§{¡{×';Ñ';¸e¿l¹l¸^ÈUÓSÐSr   c           	     ó|  <€ R pR pV.pVP                   R8X  d%   \        \        R V4      V P                  R7      pR pM0VP                  ^8”  d    VP
                  '       g   V P                  .pVP                  R4      ;p'       g   V P                  W4      p\        SV `)  VVVRV P                  ,          VVR7      # )NÚRASTER)Útemplater   z	 USING %s)r   r   ÚusingÚ	opclassesÚexpressions)Ú	geom_typer   r   Úrast_index_templater(   Ú	geographyÚgeom_index_ops_ndÚgetrK   r   r#   Úgeom_index_type)	r   r   r   r%   rR   rQ   r   r   r   s	   &&&,    €r   r$   Ú-PostGISSchemaEditor._create_spatial_index_sqlb   s¹   ø€ ØˆØˆ	Ø�ˆØ�?‰?˜hÔ&ô œs 4¨Ó/¸$×:RÑ:RÔSˆKØ‰FØ�Y‰Y˜Œ] 5§?§? ?à×/Ñ/Ð0ˆIØŸ
™
 6Ó*Ð*�Ö*Ø×2Ñ2°5Ó@ˆDä‰wÑ(ØØØØ × 4Ñ 4Õ4ØØ#ð )ó 
ð 	
r   c                óF   € V P                  W4      pV P                  W4      # r   )rK   Ú_delete_index_sql)r   r   r   Ú
index_names   &&& r   r?   Ú-PostGISSchemaEditor._delete_spatial_index_sql{   s#   € Ø×4Ñ4°UÓBˆ
Ø×%Ñ% eÓ8Ð8r   © )F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__rX   rV   rT   r.   r/   r   r   r#   r-   r<   rK   r$   r?   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   Ú__classdict__s   @@r   r   r      se   ù‡ € Ø€OØ.ÐØ:Ðð 	Wð ð 	Wð ò8õ>ð
J°÷ Jõ
÷<KòBTõ
÷29ò 9r   r   N)Údjango.contrib.gis.db.modelsr   Ú$django.db.backends.postgresql.schemar   Údjango.db.models.expressionsr   r   r   r^   r   r   Ú<module>rj      s   ðÝ 6Ý Eß 2ôw9Ð.ö w9r   