<?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: add a Thumbnail to a wms item in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/add-a-thumbnail-to-a-wms-item/m-p/1037788#M60448</link>
    <description>&lt;P&gt;Dear Sabina,&lt;/P&gt;&lt;P&gt;According to the docs. The method works only for feature services:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Creates a Thumbnail for a feature service portal item "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=create_thumbnail#arcgis.gis.Item.create_thumbnail" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=create_thumbnail#arcgis.gis.Item.create_thumbnail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 19:42:32 GMT</pubDate>
    <dc:creator>nita14</dc:creator>
    <dc:date>2021-03-17T19:42:32Z</dc:date>
    <item>
      <title>add a Thumbnail to a wms item</title>
      <link>https://community.esri.com/t5/python-questions/add-a-thumbnail-to-a-wms-item/m-p/1022591#M59765</link>
      <description>&lt;P&gt;&amp;nbsp;I want create&amp;nbsp; thumbnails for&amp;nbsp; WMS items in ArcGIS online using python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use "layer.create_thumbnail".&amp;nbsp; If I try on a feature layer the result is right, but on&amp;nbsp; wms items the thumbnail isn't made, and I don't catch any error.&lt;BR /&gt;You can see the code.&lt;/P&gt;&lt;P&gt;Some Help?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;PRE&gt;gis = arcgis.GIS(&lt;SPAN&gt;url&lt;/SPAN&gt;=&lt;SPAN&gt;'https://www.arcgis.com'&lt;/SPAN&gt;, &lt;SPAN&gt;username&lt;/SPAN&gt;=&lt;SPAN&gt;'xxxxxxx'&lt;/SPAN&gt;, &lt;SPAN&gt;password&lt;/SPAN&gt;=&lt;SPAN&gt;'xxxxx'&lt;/SPAN&gt;, &lt;SPAN&gt;verify_cert&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;PRE&gt;test_layer = gis.content.search( &lt;SPAN&gt;item_type&lt;/SPAN&gt;=&lt;SPAN&gt;'Feature Layer'&lt;/SPAN&gt;, &lt;SPAN&gt;outside_org&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;query &lt;/SPAN&gt;=&lt;SPAN&gt;'owner: sbruschi@esriitalia.it AND title : scuole'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(test_layer)&lt;BR /&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;layer &lt;SPAN&gt;in &lt;/SPAN&gt;test_layer:&lt;BR /&gt;    pippo = layer.create_thumbnail(&lt;SPAN&gt;update&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;print &lt;/SPAN&gt;(pippo)&lt;BR /&gt;&lt;BR /&gt;test_layer = gis.content.search( &lt;SPAN&gt;item_type&lt;/SPAN&gt;=&lt;SPAN&gt;'WMS'&lt;/SPAN&gt;, &lt;SPAN&gt;outside_org&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;query &lt;/SPAN&gt;=&lt;SPAN&gt;'owner: sbruschi@esriitalia.it AND title : Argentina_26 - Service Station'&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(test_layer)&lt;BR /&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;layer &lt;SPAN&gt;in &lt;/SPAN&gt;test_layer:&lt;BR /&gt;    pippo = layer.create_thumbnail(&lt;SPAN&gt;update&lt;/SPAN&gt;=&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;print &lt;/SPAN&gt;(pippo)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 07:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-thumbnail-to-a-wms-item/m-p/1022591#M59765</guid>
      <dc:creator>Sabina</dc:creator>
      <dc:date>2021-02-03T07:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: add a Thumbnail to a wms item</title>
      <link>https://community.esri.com/t5/python-questions/add-a-thumbnail-to-a-wms-item/m-p/1037788#M60448</link>
      <description>&lt;P&gt;Dear Sabina,&lt;/P&gt;&lt;P&gt;According to the docs. The method works only for feature services:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Creates a Thumbnail for a feature service portal item "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=create_thumbnail#arcgis.gis.Item.create_thumbnail" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html?highlight=create_thumbnail#arcgis.gis.Item.create_thumbnail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 19:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/add-a-thumbnail-to-a-wms-item/m-p/1037788#M60448</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2021-03-17T19:42:32Z</dc:date>
    </item>
  </channel>
</rss>

