Import metadata template to raster dataset in Pro using python?

696
4
07-01-2019 01:36 PM
by Anonymous User
Not applicable

I have 328 raster datasets in my GDB I will be publishing to Portal as an image service. I have a metadata template I want to import for each of these rasters. Is there a way to do this with python? I found that ArcMap had an ImportMetadata_conversion tool that could've worked (I think?) but Pro does not have it. Just updated to Pro 2.4. Thank you!

0 Kudos
4 Replies
DanPatterson_Retired
MVP Emeritus
by Anonymous User
Not applicable

Thanks for the reply Dan. Do you know of a way to fill in the metadata (item details) when publishing instead? Maybe there's hope going that direction.

0 Kudos
DanPatterson_Retired
MVP Emeritus

Sorry Bryan, perhaps with the 'arcgis'  module in the api reference.

API Reference for the ArcGIS API for Python — arcgis 1.6.2 documentation 

0 Kudos
by Anonymous User
Not applicable

I looked through the documentation with my co-worker who is far more advanced in python and ArcGIS API for Python than me and the documentation indicated there is a 'metadata' property for the Map Image Layer Manager (arcgis.mapping.MapImageLayerManager.metadata), but we couldn't find any documentation for it.

0 Kudos