<?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 Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779656#M1128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is more the linking between feature layers and map image layers which are published together on the Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a description in the feature layer, but wish to copy this over to the map image layer that was published at the same time, but I cannot find any relationship between the two (I have included screenshots below of what I mean).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/479915_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/479916_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2020 10:51:10 GMT</pubDate>
    <dc:creator>PhillipGiraud</dc:creator>
    <dc:date>2020-01-30T10:51:10Z</dc:date>
    <item>
      <title>Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779654#M1126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if there is a way to copy descriptions from feature layers to map image layers using the Python API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know when publishing feature layers there is a corresponding map image layer that is published, but I cannot see a way to link the two together, any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our users tend to fill out the description information for one layer but not the other so it would be good to put a process in place that will automatically copy this information over.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 12:29:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779654#M1126</guid>
      <dc:creator>PhillipGiraud</dc:creator>
      <dc:date>2020-01-28T12:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779655#M1127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Feature Service metadata (service level, not item level) can be updated by using 'update_definition' as mentioned in&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/" title="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/"&gt;Service definitions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume that there is similar method for the map image layer. Maybe it's this&amp;nbsp;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.mapping.html#arcgis.mapping.MapImageLayerManager.edit_tile_service" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.mapping.html#arcgis.mapping.MapImageLayerManager.edit_tile_service"&gt;arcgis.mapping module — arcgis 1.7.0 documentation&lt;/A&gt;&amp;nbsp;where you should pass the description through service definition parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any map image layers on hand so I cannot test the theory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 08:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779655#M1127</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2020-01-30T08:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779656#M1128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is more the linking between feature layers and map image layers which are published together on the Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a description in the feature layer, but wish to copy this over to the map image layer that was published at the same time, but I cannot find any relationship between the two (I have included screenshots below of what I mean).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/479915_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/479916_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779656#M1128</guid>
      <dc:creator>PhillipGiraud</dc:creator>
      <dc:date>2020-01-30T10:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779657#M1129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is way to link item descriptions by default so it will require some code for it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you publishing the services? If you use a python tool for the publishing, then it would be easy thing to update the description (or any item level metadata) from a single configuration. If your customers are manually creating services, then you would need to either to have script running on timer or manually run it every now and then to update the values.&amp;nbsp; Something along this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; getpass

password &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; getpass&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getpass&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Enter password: "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'org'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'me'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Connected to: {}\nConnected as: {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
           gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;urlKey &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"."&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;customBaseUrl&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
           gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;users&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;me&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;username&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

search_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
           query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"title:Liikenneväylät Helsinki"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
           item_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Feature Layer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
search_result

&lt;SPAN class="comment token"&gt;#[&amp;lt;Item title:"Liikenneväylät Helsinki (Read-only)" type:Feature Layer Collection owner:xxx&amp;gt;,&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# &amp;lt;Item title:"Liikenneväylät Helsinki" type:Feature Layer Collection owner:xxxx&amp;gt;,&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# &amp;lt;Item title:"Liikenneväylät Helsinki (Edit)" type:Feature Layer Collection owner:xxx&amp;gt;]&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Copy from master service to the view&lt;/SPAN&gt;
copy_from_item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; search_result&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;copy_from_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;description&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Take the item that is being updated&lt;/SPAN&gt;
copy_to_item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; search_result&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;copy_to_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;description&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#Added!&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#None&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Define which values are updated&lt;/SPAN&gt;
item_properties &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    &lt;SPAN class="string token"&gt;'description'&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; copy_from_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;description   
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

copy_to_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item_properties&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;item_properties&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;copy_to_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;description&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#Added!‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&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;/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;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&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779657#M1129</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2021-12-12T08:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779658#M1130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for replying Antti.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would certainly work if the layer names are identical, but I am not sure if that is a foolproof way of associating the layers together (and you can find that the feature layer title could be changed to a different name than that of the map image layer and vice versa).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thinking was obtaining the URL path for each service, replacing 'FeatureServer' with 'MapServer' and seeing if an associated MapServer is running, if so change the description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, this I think would only be working with the service, not the actual items in the Portal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 12:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779658#M1130</guid>
      <dc:creator>PhillipGiraud</dc:creator>
      <dc:date>2020-01-30T12:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779659#M1131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, it's not. Some of it really depends how the services are published but if the process is not really coordinated then it limits options. If you have a control over the publishing process you use could for example &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/related-items.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;relatedItems (with type service2service)&lt;/A&gt;&amp;nbsp;concept to map the services if you want to have a link between them or you could just copy the item metadata as part of the publishing process. If you don't have control then you cannot really assume that they would publish the Map Image Layer with the same name as the Feature Service either. It might be rarer for sure but could be done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you assume that the name of the service is the same, you could go through all the layers in your organization and check url from the item properties and map the corresponding items together. Yeah, its a bit crude solution but should work if the assumption is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;search_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
    query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"title:\"Liikenneväylät Helsinki\" AND (type: \"Map Service\" OR type:\"Feature Service\" OR type:\"Image Service\")"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; search_result&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Liikenneväylät Helsinki"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" : "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Liikenneväylät Helsinki : https://services1.arcgis.com/ut5Ig3pyAO7DhCxU/arcgis/rest/services/Liikenneväylät_Helsinki/FeatureServer&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Liikenneväylät Helsinki : https://services1.arcgis.com/ut5Ig3pyAO7DhCxU/arcgis/rest/services/Liikenneväylät_Helsinki/MapServer&lt;/SPAN&gt;
‍‍‍‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are the services published as hosted services in ArcGIS Online or is Enterprise/Server involved?&amp;nbsp;Are the services actually using the same data or are the services totally different with duplicated data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: added link to the relatedItems documentation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779659#M1131</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2021-12-12T08:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779660#M1132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data is published using ArcGIS Pro / ArcMap and the share as web layer option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://lh3.googleusercontent.com/-ycdrbjBoXio/XjLZ6U8QKEI/AAAAAAAAD54/C8Ech3oT664_KeOwU7rz8Nf14skOtEMwgCK8BGAsYHg/s0/2020-01-30.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The services are using the same data and are being published via Enterprise/Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 14:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779660#M1132</guid>
      <dc:creator>PhillipGiraud</dc:creator>
      <dc:date>2020-01-30T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779661#M1133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. I think that then you can assume that the service names are the same and you could use the url trick to match them. Unfortunately AGOL doesn't seem to support query based on the url so you need to query all layers and then handle the pairing in code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This kind of approach seems to work but since I do quite a few queries here, it's a bit slow if you have a lot of services.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;feature_services_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
    query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"type:\"Feature Service\" AND owner:{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;me&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; max_items&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; feature_service_item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; feature_services_result&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    url_root &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; feature_service_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;rsplit&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'/'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; feature_service_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;type &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Feature Service'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        map_services_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
            query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"type:\"Map Service\" AND owner:{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;me&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; max_items&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;map_services_result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; map_service_item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; map_services_result&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; url_root &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; map_service_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Match found:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Feature Service: {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature_service_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Map Service: {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;map_service_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    item_properties &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                        &lt;SPAN class="string token"&gt;'description'&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; feature_service_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;description
                    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Updating metadata for item {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;map_service_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    update_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; map_service_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item_properties&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;item_properties&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;update_result&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Update completed for the item"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Update failed for the item"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                    
&lt;SPAN class="comment token"&gt;# Match found:&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Feature Service: https://services1.arcgis.com/ut5Ig3pyAO7DhCxU/arcgis/rest/services/Liikenneväylät_Helsinki/FeatureServer&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Map Service: https://services1.arcgis.com/ut5Ig3pyAO7DhCxU/arcgis/rest/services/Liikenneväylät_Helsinki/MapServer&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Updating metadata for item 40eb38d75cac4bc6afe18681ecdb49f2&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Update completed for the item&lt;/SPAN&gt;&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779661#M1133</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2021-12-12T08:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779662#M1134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's brilliant Antti thank you, exactly what I was thinking but yes agree that it may take a while to complete as it has to loop through all services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for being so helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779662#M1134</guid>
      <dc:creator>PhillipGiraud</dc:creator>
      <dc:date>2020-01-30T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Copying descriptions from feature layers to map image layers with ArcGIS Python API?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779663#M1135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy to help! It's good training for me to get more used&amp;nbsp;to the API and it's capabilities and limitations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:50:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-descriptions-from-feature-layers-to-map/m-p/779663#M1135</guid>
      <dc:creator>AnttiKajanus</dc:creator>
      <dc:date>2020-01-30T15:50:40Z</dc:date>
    </item>
  </channel>
</rss>

