AnsweredAssumed Answered

ArcGIS Pro: read metadata from map with arcpy

Question asked by lukas.wuersch_CDE on Feb 6, 2020
Latest reply on Feb 11, 2020 by lukas.wuersch_CDE

Hi there

 

I would like to access metadata information (such as tags and descriptions) which are stored in a Map with arcpy. 

According to the documentation, Map class has a metadata attribute, however if I try to access it within ArcGIS Pro I get AttributeError: 'Map' object has no attribute 'metadata'. I tried the following:

aprx = arcpy.mp.ArcGISProject("Current")
map = aprx.listMaps()[0]

map.metadata

(other attributes of Map can be accessed like this)

 

Am I doing something wrong or is it not possible to access the metadata information like this? Is there currently another way to access metadata information with arcpy or do we have to wait for ArcGIS Pro 2.5 for this functionality? 

 

Any help or hints would be very appreciated

Outcomes