
    DvgB                     :    d dl mZ d dlmZ  G d de          ZdS )    )GDALBase)rasterc                   H    e Zd ZdZed             Zej        d             ZdS )GDALRasterBasez@
    Attributes that exist on both GDALRaster and GDALBand.
    c                    dg}t          j        | j                  }|rBd}||         }|r6|                    |                                           |dz  }||         }|6t          j        |           i }|D ]}t          j        | j        |dk    rdn|                                          }|s9i }d}||         }|r>|                                                    d          \  }	}
|
||	<   |dz  }||         }|>|||pd<   |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vals              `/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/django/contrib/gis/gdal/raster/base.pymetadatazGDALRasterBase.metadata
   sY    !k 4TY??	 	, Gw'F ,""6==??3331"7+  , 	i    ! 	6 	6F'	9,,&--// D   KG=D %;;==..s33S#&C 1G}	  % +6F6&Y''    c                 .   |                                 D ]\  }}|dk    rdn|                                }|                                 D ]I\  }}t          j        | j        |                                |r|                                nd|           JdS )zo
        Set the metadata. Update only the domains that are contained in the
        value dictionary.
        r   N)itemsr   r   set_ds_metadata_itemr   )r   valuer   r    	meta_name
meta_values         r   r    zGDALRasterBase.metadata<   s     !& 
	 
	FH#y00TTfmmooF)1)9)9  %	:)I$$&&+5?J%%'''4	   	
	 
	r!   N)__name__
__module____qualname____doc__propertyr    setter r!   r   r   r      sW          / / X/b _  _  r!   r   N)django.contrib.gis.gdal.baser   "django.contrib.gis.gdal.prototypesr   r   r   r.   r!   r   <module>r1      sg    1 1 1 1 1 1 = = = = = =H H H H HX H H H H Hr!   