<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS Pro: read metadata from map with arcpy in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-read-metadata-from-map-with-arcpy/m-p/618799#M27529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to access metadata information (such as tags and descriptions) which are stored in a Map&amp;nbsp;with arcpy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/map-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;documentation&lt;/A&gt;, Map class has a metadata attribute, however if I try to access it within ArcGIS Pro I get&amp;nbsp;AttributeError: 'Map' object has no attribute 'metad&lt;SPAN style="color: #000000;"&gt;ata'. I tried the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000000;"&gt;aprx = arcpy.mp.ArcGISProject("Current")
map = aprx.listMaps()[0]&lt;/SPAN&gt;
&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;map.&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;metadata&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: 300; "&gt;(&lt;SPAN style="font-size: 13.92px;"&gt;other attributes of Map can be accessed like this&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Am I doing something wrong or is it not possible&amp;nbsp;to access the metadata information like this? Is&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;there currently another way to access metadata information with arcpy or&amp;nbsp;do we have to wait for ArcGIS Pro 2.5 for this functionality?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or hints would be very appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:42:15 GMT</pubDate>
    <dc:creator>LukasWürsch</dc:creator>
    <dc:date>2021-12-12T16:42:15Z</dc:date>
    <item>
      <title>ArcGIS Pro: read metadata from map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-read-metadata-from-map-with-arcpy/m-p/618799#M27529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to access metadata information (such as tags and descriptions) which are stored in a Map&amp;nbsp;with arcpy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the &lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/map-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;documentation&lt;/A&gt;, Map class has a metadata attribute, however if I try to access it within ArcGIS Pro I get&amp;nbsp;AttributeError: 'Map' object has no attribute 'metad&lt;SPAN style="color: #000000;"&gt;ata'. I tried the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000000;"&gt;aprx = arcpy.mp.ArcGISProject("Current")
map = aprx.listMaps()[0]&lt;/SPAN&gt;
&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;map.&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;metadata&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-weight: 300; "&gt;(&lt;SPAN style="font-size: 13.92px;"&gt;other attributes of Map can be accessed like this&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Am I doing something wrong or is it not possible&amp;nbsp;to access the metadata information like this? Is&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;there currently another way to access metadata information with arcpy or&amp;nbsp;do we have to wait for ArcGIS Pro 2.5 for this functionality?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or hints would be very appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:42:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-read-metadata-from-map-with-arcpy/m-p/618799#M27529</guid>
      <dc:creator>LukasWürsch</dc:creator>
      <dc:date>2021-12-12T16:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro: read metadata from map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-read-metadata-from-map-with-arcpy/m-p/618800#M27530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi Lukas,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;The online help always defaults to the latest version of the software. I'm running 2.4.3 and i just tried getting the metadata from a map and got the same result. In addition I check using the python help function and only found the following descriptors:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; Data descriptors defined here&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; 
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; defaultCamera
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; 
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; defaultView
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; 
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; mapType
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; 
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; mapUnits
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; 
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; name
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; 
 &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; referenceScale&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;So I would guess for the map class the metadata property is new with 2.5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-read-metadata-from-map-with-arcpy/m-p/618800#M27530</guid>
      <dc:creator>LorneDmitruk2</dc:creator>
      <dc:date>2021-12-12T02:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro: read metadata from map with arcpy</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-read-metadata-from-map-with-arcpy/m-p/618801#M27531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the answer, just noticed that 2.5 was recently released. I updated to the new version, now it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 11:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-read-metadata-from-map-with-arcpy/m-p/618801#M27531</guid>
      <dc:creator>LukasWürsch</dc:creator>
      <dc:date>2020-02-11T11:13:39Z</dc:date>
    </item>
  </channel>
</rss>

