https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/django/contrib/gis/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/gis/utils/srs.pyc
�
r�\c@s/ddlmZddddd�ZeZdS(i����(tSpatialReferencetEPSGcCs�ddlm}m}|s%|}n||}t|jd�sPtd��n|jjsh|jjrwtd��n|jj�}t	|t
�s�t
|�}n|jd
kr�td��ni|jd6|d6|p�|jd	6|j
d
6}	|jjr|j|	d<n|jjr1|p'|j|	d<ny%|jj|�jd|j�}
Wn/|jk
r�|jj|�j|	�}
nXd
S(s�
    This function takes a GDAL SpatialReference system and adds 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 -- for example, the so-called "Google Maps Mercator Projection"
    is excluded in PostGIS 1.3 and below, and the following adds it to the
    `spatial_ref_sys` table:

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

    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, it's value
      is 'default').
    i����(tconnectionstDEFAULT_DB_ALIAStspatial_versions=The `add_srs_entry` utility only works with spatial backends.sCThis utility does not support the Oracle or MySQL spatial backends.sMSpatial reference requires an SRID to be compatible with the spatial backend.tsridt	auth_namet	auth_sridt	proj4texttsrtexttref_sys_nameN(t	django.dbRRthasattrtopst	Exceptiontoracletmysqltspatial_ref_syst
isinstanceRRtNonetproj4tpostgistwktt
spatialitetnametobjectstusingtgettDoesNotExisttcreate(tsrsRRR
tdatabaseRRt
connectiont
SpatialRefSystkwargstsr((s>/tmp/pip-install-XxeQeY/django/django/contrib/gis/utils/srs.pyt
add_srs_entrys2 	


%N(tdjango.contrib.gis.gdalRRR$tadd_postgis_srs(((s>/tmp/pip-install-XxeQeY/django/django/contrib/gis/utils/srs.pyt<module>s	L

https://t.me/AnonymousX5 - 2025