File: //lib/python3/dist-packages/django/contrib/gis/gdal/__pycache__/libgdal.cpython-310.pyc
o
3�ag
� @ s� d dl Z d dlZd dlZd dlmZmZmZmZ d dlm Z d dl
mZ d dlm
Z
e �d�Zzd dlmZ ejZW n eee
efyI dZY nw erOdZnejdkrYg d �Znejd
krcg d�Zne
dej ��er{eD ]Ze e�Zedurz nqnedu r�e
d
d�e� ��ee�Zejdkr�d dlmZ ee�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", ")�WinDLLc C s t jdkr t| S t| 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 �GDALVersionInfoc C � t d�S )z0Return only the GDAL version number information.s RELEASE_NAME��
_version_infor r r r �gdal_versionS � r# c C r )z)Return the full GDAL version information.� r! r r r r �gdal_full_versionX r$ r&