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__/driver.cpython-310.pyc
o

�a��@sXddlmZddlmZddlmZddlmZm	Z
ddlmZm
Z
Gdd�de�ZdS)	�)�c_void_p)�GDALBase)�
GDALException)�ds�raster)�force_bytes�	force_strc
@s\eZdZdZdddddddddd�	Zdd�Zd	d
�Zedd��Zed
d��Z	e
dd��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�jpgcCs�t|t�r/|��|��|jvr|j|��}n|}ttfD]}t|�t	|���}|r-nqn*t|t
�rI|��ttfD]}|�|�}|rGnq<nt|t�rQ|}ntdt
|���|satd|��||_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�driver�r&�@/usr/lib/python3/dist-packages/django/contrib/gis/gdal/driver.py�__init__#s2
��

��

zDriver.__init__cCs|jS)N)r#�r!r&r&r'�__str__GszDriver.__str__cCs(t��st��t��st��dSdS)zB
        Attempt to register all the data source drivers.
        N)r�get_driver_count�register_allr��clsr&r&r'rJs
�zDriver.ensure_registeredcCst��t��S)zO
        Return the number of GDAL/OGR data source drivers registered.
        )rr+rr-r&r&r'�driver_countV�zDriver.driver_countcCstt�|j��S)zA
        Return description/name string for this driver.
        )rr�get_driver_descriptionr r)r&r&r'r#]r0zDriver.nameN)�__name__�
__module__�__qualname__�__doc__rr(r*�classmethodrr/�propertyr#r&r&r&r'r		s(
�$

r	N)�ctypesr�django.contrib.gis.gdal.baser�django.contrib.gis.gdal.errorr�"django.contrib.gis.gdal.prototypesrrrr�django.utils.encodingrrr	r&r&r&r'�<module>s

https://t.me/RX1948 - 2025