Ë
    ¹ûàg’  ã                   ó*   — d dl mZ d dlmZmZ 	 dd„Zy)é    )ÚSpatialReference)ÚDEFAULT_DB_ALIASÚconnectionsNc                 óD  — |xs t         }t        |   }t        |j                  d«      st	        d«      ‚|j
                  j                  st	        d«      ‚|j                  j                  «       }t        | t        «      st        | «      } | j                  €t	        d«      ‚| j                  ||xs | j                  | j                  dœ}|j                  j                  «       D �ch c]  }|j                  ’Œ }	}d|	v r| j                  |d<   d|	v r|xs | j                  |d<   	 |j                   j#                  |«      j%                  | j                  ¬	«       yc c}w # |j&                  $ r.  |j                   j#                  |«      j(                  d
i |¤Ž Y yw xY w)a  
    Take a GDAL SpatialReference system and add its information to the
    `spatial_ref_sys` table of the spatial backend. Doing this enables
    database-level spatial transformations for the backend.  Thus, this utility
    is useful for adding spatial reference systems not included by default with
    the backend:

    >>> from django.contrib.gis.utils import add_srs_entry
    >>> add_srs_entry(3857)

    Keyword Arguments:
     auth_name:
       This keyword may be customized with the value of the `auth_name` field.
       Defaults to 'EPSG'.

     auth_srid:
       This keyword may be customized with the value of the `auth_srid` field.
       Defaults to the SRID determined by GDAL.

     ref_sys_name:
       For SpatiaLite users only, sets the value of the `ref_sys_name` field.
       Defaults to the name determined by GDAL.

     database:
      The name of the database connection to use; the default is the value
      of `django.db.DEFAULT_DB_ALIAS` (at the time of this writing, its value
      is 'default').
    Úspatial_versionz=The `add_srs_entry` utility only works with spatial backends.z4This utility does not support your database backend.NzMSpatial reference requires an SRID to be compatible with the spatial backend.)ÚsridÚ	auth_nameÚ	auth_sridÚ	proj4textÚsrtextÚref_sys_name)r   © )r   r   ÚhasattrÚopsÚ	ExceptionÚfeaturesÚsupports_add_srs_entryÚspatial_ref_sysÚ
isinstancer   r   Úproj4Ú_metaÚ
get_fieldsÚnameÚwktÚobjectsÚusingÚgetÚDoesNotExistÚcreate)
Úsrsr	   r
   r   ÚdatabaseÚ
connectionÚSpatialRefSysÚkwargsÚfÚsrs_field_namess
             úZ/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/django/contrib/gis/utils/srs.pyÚadd_srs_entryr(      s�  € ð> Ò+Ô+€HÜ˜XÑ&€Jä�:—>‘>Ð#4Ô5ÜÐWÓXÐXØ×Ñ×5Ò5ÜÐNÓOÐOØ—N‘N×2Ñ2Ó4€Mô �cÔ+Ô,Ü˜sÓ#ˆà
‡x�xÐÜð3ó
ð 	
ð —‘ØØÒ* #§(¡(Ø—Y‘Yñ	€Fð (5×':Ñ':×'EÑ'EÓ'GÖH !�q—v“vÐH€OÐHØ�?Ñ"ØŸ7™7ˆˆxÑØ˜Ñ(à!-Ò!9°·±ˆˆ~Ñð?ð 	×Ñ×#Ñ# HÓ-×1Ñ1°s·x±xÐ1Õ@ùò Iøð ×%Ñ%ò ?Ø4ˆ×Ñ×#Ñ# HÓ-×4Ñ4Ñ>°vÔ>ð?ús   Ã'EÄ'5E" Å":FÆF)ÚEPSGNNN)Údjango.contrib.gis.gdalr   Ú	django.dbr   r   r(   r   ó    r'   ú<module>r-      s   ðÝ 4ß 3ð HLôI?r,   