o ºŽÒ_- ã@s,ddlmZddlmZGdd„deƒZdS)é)ÚGDALBase)Úrasterc@s*eZdZdZedd„ƒZejdd„ƒZdS)ÚGDALRasterBasez@ Attributes that exist on both GDALRaster and GDALBand. c CsÖ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Ús