| 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 : /usr/lib/python3/dist-packages/django/contrib/gis/gdal/__pycache__/ |
Upload File : |
�
�|�e� � �f � d dl mZ d dlmZ d dlmZ d dlmZm Z
d dlmZm
Z
G d� de� � ZdS ) � )�c_void_p)�GDALBase)�
GDALException)�ds�raster)�force_bytes� force_strc
�x � e Zd ZdZdddddddddd� Zd� Zd� Zed � � � Zed
� � � Z e
d� � � ZdS )
�Driverz�
Wrap a GDAL/OGR Data Source Driver.
For more information, see the C API documentation:
https://gdal.org/api/vector_c_api.html
https://gdal.org/api/raster_c_api.html
zESRI Shapefile�TIGER�GTiff�JPEG) �esri�shp�shape�tigerz
tiger/line�tiff�tif�jpeg�jpgc � � t |t � � r�| � � � |� � � | j v r | j |� � � }n|}t
t fD ]5}t |� t |� � � � � � }|r n�6n�t |t � � r?| � � � t
t fD ]}|� |� � }|r n�n7t |t � � r|}nt dt |� � z � � �|st d|z � � �|| _ dS )zT
Initialize an GDAL/OGR driver on either a string or integer input.
z/Unrecognized input type for GDAL/OGR Driver: %sz1Could not initialize GDAL/OGR Driver on input: %sN)�
isinstance�str�ensure_registered�lower�_alias�vcapi�rcapir �get_driver_by_namer �int�
get_driverr �type�ptr)�self�dr_input�name�iface�drivers �@/usr/lib/python3/dist-packages/django/contrib/gis/gdal/driver.py�__init__zDriver.__init__# sk � � �h��$�$� d��"�"�$�$�$� �~�~���4�;�.�.��{�8�>�>�#3�#3�4����� ���
�
��!�%�":�":�;�t�;L�;L�"M�"M�N�N��� ��E���
��#�
&�
&� d��"�"�$�$�$����
�
���)�)�(�3�3��� ��E���
��(�
+�
+� d��F�F�� Q�TX�Ya�Tb�Tb� b�c�c�c� � `�� S�V^� ^�_�_�_������ c � � | j S )N)r&