Import metadata template to raster dataset in Pro using python?

297
4
07-01-2019 01:36 PM
BryanHemmer
Occasional Contributor III

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 Esteemed Contributor
BryanHemmer
Occasional Contributor III

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 Esteemed Contributor

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
BryanHemmer
Occasional Contributor III

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