§
    ¤”j’  ã                   ó,   — d dl mZ d dlmZmZ 	 dd„ZdS )é    )ÚSpatialReference)ÚDEFAULT_DB_ALIASÚconnectionsÚEPSGNc                 óÜ  — |pt           }t          |         }t          |j        d¦  «        st	          d¦  «        ‚|j        j        st	          d¦  «        ‚|j                             ¦   «         }t          | t          ¦  «        st          | ¦  «        } | j
        €t	          d¦  «        ‚| j
        ||p| j
        | j        dœ}d„ |j                             ¦   «         D ¦   «         }d|v r
| j        |d<   d	|v r|p| j        |d	<   	 |j                             |¦  «                             | j
        ¬
¦  «         dS # |j        $ r)  |j                             |¦  «        j        di |¤Ž Y dS 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Ú	proj4textc                 ó   — h | ]	}|j         ’Œ
S © )Úname)Ú.0Úfs     úk/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/django/contrib/gis/utils/srs.pyú	<setcomp>z add_srs_entry.<locals>.<setcomp>A   s   € ÐHÐHÐH !�q”vÐHÐHÐHó    ÚsrtextÚref_sys_name)r	   r   )r   r   ÚhasattrÚopsÚ	ExceptionÚfeaturesÚsupports_add_srs_entryÚspatial_ref_sysÚ
isinstancer   r	   Úproj4Ú_metaÚ
get_fieldsÚwktr   ÚobjectsÚusingÚgetÚDoesNotExistÚcreate)	Úsrsr
   r   r   ÚdatabaseÚ
connectionÚSpatialRefSysÚkwargsÚsrs_field_namess	            r   Úadd_srs_entryr-      sµ  € ð> Ð+Õ+€HÝ˜XÔ&€Jå�:”>Ð#4Ñ5Ô5ð YÝÐWÑXÔXÐXØÔÔ5ð PÝÐNÑOÔOÐOØ”N×2Ò2Ñ4Ô4€Mõ �cÕ+Ñ,Ô,ð $Ý˜sÑ#Ô#ˆà
„xÐÝð3ñ
ô 
ð 	
ð ”ØØÐ* #¤(Ø”Yð	ð €Fð IÐH }Ô':×'EÒ'EÑ'GÔ'GÐHÑHÔH€OØ�?Ð"Ð"Øœ7ˆˆxÑØ˜Ð(Ð(à!-Ð!9°´ˆˆ~Ñð?ð 	Ô×#Ò# HÑ-Ô-×1Ò1°s´xÐ1Ñ@Ô@Ð@Ð@Ð@øØÔ%ð ?ð ?ð ?Ø4ˆÔ×#Ò# HÑ-Ô-Ô4Ð>Ð>°vÐ>Ð>Ð>Ð>Ð>Ð>ð?øøøs   Ä3D8 Ä8/E+Å*E+)r   NNN)Údjango.contrib.gis.gdalr   Ú	django.dbr   r   r-   r   r   r   ú<module>r0      sZ   ðØ 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3Ð 3Ð 3ð HLðI?ð I?ð I?ð I?ð I?ð I?r   