https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/contrib/gis/gdal/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/contrib/gis/gdal/__pycache__/libgdal.cpython-310.pyc
o

3�ag
�@s�ddlZddlZddlZddlmZmZmZmZddlm	Z	ddl
mZddlm
Z
e�d�ZzddlmZejZWneee
efyIdZYnwerOdZnejdkrYgd	�Znejd
krcgd�Zne
dej��er{eD]Ze	e�Zedurznqnedur�e
d
d�e���ee�Zejdkr�ddlmZee�Zdd�Zed�Zege_ ee_!dd�Z"dd�Z#dd�Z$e$�Z%edeee�Z&dd�Z'e&e'�Z'dd�Z(e(de&ge&�Z)e)e'�dS)�N)�CDLL�	CFUNCTYPE�c_char_p�c_int)�find_library)�
GDALException)�ImproperlyConfiguredzdjango.contrib.gis)�settings�nt)�gdal302�gdal301�gdal300�gdal204�gdal203�gdal202�gdal201�gdal20�posix)
�gdal�GDALz	gdal3.2.0z	gdal3.1.0z	gdal3.0.0z	gdal2.4.0z	gdal2.3.0z	gdal2.2.0z	gdal2.1.0z	gdal2.0.0zGDAL is unsupported on OS "%s".zzCould not find the GDAL library (tried "%s"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.z", ")�WinDLLcCstjdkr	t|St|S)z^
    Return the correct STDCALL function for certain OSR routines on Win32
    platforms.
    r
)�os�name�lwingdal�lgdal)�func�r�A/usr/lib/python3/dist-packages/django/contrib/gis/gdal/libgdal.py�std_call@s
r�GDALVersionInfocC�td�S)z0Return only the GDAL version number information.sRELEASE_NAME��
_version_inforrrr�gdal_versionS�r#cCr )z)Return the full GDAL version information.�r!rrrr�gdal_full_versionXr$r&cCsJt�}t�d|�}|std|��|��\}}}t|�t|�|o#t|�fS)Ns7^(?P<major>\d+)\.(?P<minor>\d+)(?:\.(?P<subminor>\d+))?z(Could not parse GDAL version string "%s")r#�re�matchr�groups�int)�ver�m�major�minor�subminorrrr�gdal_version_info]sr0cCst�d||�dS)NzGDAL_ERROR %d: %s)�logger�error)�error_class�error_number�messagerrr�err_handlerlsr6cCst|�}||_||_|S)N)r�argtypes�restype)r�argsr8rrrr�functionssr:�CPLSetErrorHandler)*�loggingrr'�ctypesrrrr�ctypes.utilr�django.contrib.gis.gdal.errorr�django.core.exceptionsr�	getLoggerr1�django.confr	�GDAL_LIBRARY_PATH�lib_path�AttributeError�ImportError�OSError�	lib_namesr�lib_name�joinrrrrr"r7r8r#r&r0�GDAL_VERSION�CPLErrorHandlerr6r:�set_error_handlerrrrr�<module>sf

�



���
	

https://t.me/RX1948 - 2025