<?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 Raster to Polyline Problem in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/raster-to-polyline-problem/m-p/83700#M6627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using raster to polyline&amp;nbsp;in a python script, and it is not generating the results I would expect. &amp;nbsp;When I run the toolbox raster to polyline with the same parameters, I get the results I expect. &amp;nbsp;In the attached image, the green shows the input raster cells (cell value of 1), the blue line shows the toolbox results and the black line shows my script results. &amp;nbsp;Any ideas as to what would be causing the difference in the line output when the input and the parameters are exactly the same?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/300408_RasterToPolyline.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the raster to polyline command in the script:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RasterToPolyline_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Filter3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; breaklinesFull&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ZERO"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; cellSize&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1.42&lt;/SPAN&gt;&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;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 16:36:49 GMT</pubDate>
    <dc:creator>BenRufenacht</dc:creator>
    <dc:date>2017-01-12T16:36:49Z</dc:date>
    <item>
      <title>Raster to Polyline Problem</title>
      <link>https://community.esri.com/t5/python-questions/raster-to-polyline-problem/m-p/83700#M6627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using raster to polyline&amp;nbsp;in a python script, and it is not generating the results I would expect. &amp;nbsp;When I run the toolbox raster to polyline with the same parameters, I get the results I expect. &amp;nbsp;In the attached image, the green shows the input raster cells (cell value of 1), the blue line shows the toolbox results and the black line shows my script results. &amp;nbsp;Any ideas as to what would be causing the difference in the line output when the input and the parameters are exactly the same?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/300408_RasterToPolyline.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the raster to polyline command in the script:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RasterToPolyline_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Filter3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; breaklinesFull&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ZERO"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; cellSize&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1.42&lt;/SPAN&gt;&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;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 16:36:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-to-polyline-problem/m-p/83700#M6627</guid>
      <dc:creator>BenRufenacht</dc:creator>
      <dc:date>2017-01-12T16:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Raster to Polyline Problem</title>
      <link>https://community.esri.com/t5/python-questions/raster-to-polyline-problem/m-p/83701#M6628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would guess the environment settings at runtime in the Python session are different from those that are set in ArcMap when you run the tool interactively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Python, make sure the environment extent, cellSize, snapRaster, and outputCoordinateSystem are the same as they were for your ArcMap interactive processing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jan 2017 00:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-to-polyline-problem/m-p/83701#M6628</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-01-14T00:58:14Z</dc:date>
    </item>
  </channel>
</rss>

