<?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 arcpy.SmoothPolygon_cartography not working as expected in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221848#M8671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having some troubles with smoothing polygons in arcpy. It works well in ArcMap with exactly the same settings but when I use "arcpy.SmoothPolygon_cartography", the polygons are not smoothed, as shown in the images below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/430123_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;Result from arcpy:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/430124_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;Result from ArcMap:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/430125_pastedImage_8.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my code, the original shapefile, the result from ArcMap, and the result from arcpy&amp;nbsp;below. The result from ArcMap is exactly what I want but as I have over 1000 shapefiles to process it's not practical to do it manually in ArcMap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I found this bug:&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExNzM0Ng==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExNzM0Ng=="&gt;BUG-000117346: The Smooth Polygon tool does not smooth the polygons..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I was using the PEAK method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2018 00:53:58 GMT</pubDate>
    <dc:creator>ChengCheng</dc:creator>
    <dc:date>2018-11-22T00:53:58Z</dc:date>
    <item>
      <title>arcpy.SmoothPolygon_cartography not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221848#M8671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having some troubles with smoothing polygons in arcpy. It works well in ArcMap with exactly the same settings but when I use "arcpy.SmoothPolygon_cartography", the polygons are not smoothed, as shown in the images below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/430123_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;Result from arcpy:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/430124_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;Result from ArcMap:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/430125_pastedImage_8.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my code, the original shapefile, the result from ArcMap, and the result from arcpy&amp;nbsp;below. The result from ArcMap is exactly what I want but as I have over 1000 shapefiles to process it's not practical to do it manually in ArcMap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I found this bug:&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExNzM0Ng==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExNzM0Ng=="&gt;BUG-000117346: The Smooth Polygon tool does not smooth the polygons..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I was using the PEAK method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 00:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221848#M8671</guid>
      <dc:creator>ChengCheng</dc:creator>
      <dc:date>2018-11-22T00:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.SmoothPolygon_cartography not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221849#M8672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your coordinates are in decimal degrees and you need to specify smoothing tolerance value for the paek method... what did you specify?&lt;/P&gt;&lt;P&gt;I also got this warning&lt;/P&gt;&lt;P&gt;&amp;nbsp;WARNING 000269: The cartographic spatial reference does not have a projected coordinate system&lt;/P&gt;&lt;P&gt;which makes sense because if you are trying to smooth with a planar (aka meters/feet) it won't do any smoothing if you chose too large a value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 01:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221849#M8672</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-22T01:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.SmoothPolygon_cartography not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221850#M8673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I specified in the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.SmoothPolygon_cartography(in_features=filename, out_feature_class=output,&lt;BR /&gt; algorithm="PAEK", tolerance="90 Meters", endpoint_option="NO_FIXED", error_option="NO_CHECK")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tolerance is set to be 90 meters, the same value used in the ArcMap.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 02:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221850#M8673</guid>
      <dc:creator>ChengCheng</dc:creator>
      <dc:date>2018-11-22T02:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.SmoothPolygon_cartography not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221851#M8674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't find the polygon that you were using for your example.&amp;nbsp; What is the 90 meters tolerance relative to an example polygon perimeter?&amp;nbsp; Maybe it is too coarse, even if it was fine in ArcMap, I know some parameters have changed in ArcGIS Pro&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/cartography/smooth-polygon.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/cartography/smooth-polygon.htm"&gt;Smooth Polygon—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 16:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221851#M8674</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-22T16:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.SmoothPolygon_cartography not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221852#M8675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes!!! That's exactly where the problem is. The endpoint_option and the error_option are no longer used in ArcGIS Pro. It works perfectly when I use the&amp;nbsp;arcpy in the ArcMap 10.5 package instead. Thank you for pointing that out! It helps a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheng&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 04:56:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221852#M8675</guid>
      <dc:creator>ChengCheng</dc:creator>
      <dc:date>2018-11-23T04:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.SmoothPolygon_cartography not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221853#M8676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2018 00:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221853#M8676</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-24T00:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.SmoothPolygon_cartography not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221854#M8677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If someone's reply answers your question, or was the most helpful in answering your question, please mark it Correct to close the question out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Nov 2018 04:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcpy-smoothpolygon-cartography-not-working-as/m-p/221854#M8677</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-11-24T04:42:52Z</dc:date>
    </item>
  </channel>
</rss>

