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/raster/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

���_-�@s,ddlmZddlmZGdd�de�ZdS)�)�GDALBase)�rasterc@s*eZdZdZedd��Zejdd��ZdS)�GDALRasterBasez@
    Attributes that exist on both GDALRaster and GDALBand.
    cCs�dg}t�|j�}|r$d}||}|r$|�|���|d7}||}|st�|�i}|D];}t�|j|dkr9dn|���}|sAq-i}d}||}|rb|���d�\}	}
|
||	<|d7}||}|sK|||pgd<q-|S)z�
        Return the metadata for this raster or band. The return value is a
        nested dictionary, where the first-level key is the metadata domain and
        the second-level is the metadata item names and values for that domain.
        �DEFAULTr�N�=)	�capi�get_ds_metadata_domain_list�_ptr�append�decode�free_dsl�get_ds_metadata�encode�split)�self�domain_list�	meta_list�counter�domain�result�data�domain_meta�item�key�val�r�E/usr/lib/python3/dist-packages/django/contrib/gis/gdal/raster/base.py�metadata	s<	�
��zGDALRasterBase.metadatacCs^|��D](\}}|dkrdn|��}|��D]\}}t�|j|��|r'|��nd|�qqdS)zo
        Set the metadata. Update only the domains that are contained in the
        value dictionary.
        rN)�itemsrr�set_ds_metadata_itemr
)r�valuerr�	meta_name�
meta_valuerrrr;s
���N)�__name__�
__module__�__qualname__�__doc__�propertyr�setterrrrrrs
1rN)�django.contrib.gis.gdal.baser�"django.contrib.gis.gdal.prototypesrrrrrrr�<module>s

https://t.me/RX1948 - 2025