<?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: Is it possible to convert a raster hosted on arcgis rest to a polygon feature dataset? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5847#M508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at the first usage tip in &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-polygon.htm"&gt;RasterToPolygon's&lt;/A&gt; help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2019 16:55:49 GMT</pubDate>
    <dc:creator>SteveLynch</dc:creator>
    <dc:date>2019-04-12T16:55:49Z</dc:date>
    <item>
      <title>Is it possible to convert a raster hosted on arcgis rest to a polygon feature dataset?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5844#M505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a raster layer hosted on some arcgis rest service, let's say it's&amp;nbsp;&lt;A class="unlinked" target="_blank"&gt;https://domain.com/arcgis/rest/services/rasters/Heatmap/MapServer/0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to convert this to a polygon feature layer using arcpy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following:&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;import&lt;/SPAN&gt; arcpy

inRaster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"https://domain.com/arcgis/rest/services/rasters/Heatmap/MapServer"&lt;/SPAN&gt;
inField &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Value'&lt;/SPAN&gt;
outType &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'POLYGON'&lt;/SPAN&gt;
simplify &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'SIMPLIFY'&lt;/SPAN&gt;
outPolygons &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\test\output.shp"&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ConvertRasterToFeature_ra&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inRaster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inField&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outType&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; simplify&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outPolygons&lt;SPAN class="punctuation token"&gt;)&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&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;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; env
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;

url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"https://domain.com/arcgis/rest/services/rasters/Heatmap/MapServer/0"&lt;/SPAN&gt;
inRaster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
outPolygons &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\test\output.shp"&lt;/SPAN&gt;
field &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"VALUE"&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RasterToPolygon_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inRaster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outPolygons&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NO_SIMPLIFY"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; field&lt;SPAN class="punctuation token"&gt;)&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always get errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RuntimeError: ERROR 000732: Input Raster: Dataset &lt;A href="https://domain.com/arcgis/rest/services/rasters/Heatmap/MapServer/0" target="_blank"&gt;https://domain.com/arcgis/rest/services/rasters/Heatmap/MapServer/0&lt;/A&gt; does not exist or is not supported&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it does exist, because it shows up fine when I try to view the map service in ArcMap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5844#M505</guid>
      <dc:creator>VincentLantaca1</dc:creator>
      <dc:date>2021-12-10T20:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to convert a raster hosted on arcgis rest to a polygon feature dataset?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5845#M506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is the raster floating point or integer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5845#M506</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2019-04-12T16:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to convert a raster hosted on arcgis rest to a polygon feature dataset?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5846#M507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The raster is floating point&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:37:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5846#M507</guid>
      <dc:creator>VincentLantaca1</dc:creator>
      <dc:date>2019-04-12T16:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to convert a raster hosted on arcgis rest to a polygon feature dataset?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5847#M508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at the first usage tip in &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/conversion/raster-to-polygon.htm"&gt;RasterToPolygon's&lt;/A&gt; help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5847#M508</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2019-04-12T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to convert a raster hosted on arcgis rest to a polygon feature dataset?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5848#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there no way to do conversions in arcpy for floating point raster layers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2019 16:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-convert-a-raster-hosted-on/m-p/5848#M509</guid>
      <dc:creator>VincentLantaca1</dc:creator>
      <dc:date>2019-04-12T16:59:29Z</dc:date>
    </item>
  </channel>
</rss>

