<?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 arcgis.geometry module translate() method returns None for arcs/curved polygons in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-module-translate-method-returns/m-p/1215179#M7790</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I have encountered a case where the arcgis.geometry module translate() method returns None rather than performing a translate.&amp;nbsp; This case occurs when the geometry has arcs or curves and is described with 'curvedrings' vice 'rings'.&amp;nbsp; Have others experienced this and/or determined any valid work arounds?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerT_0-1663866736805.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51915i0CE7D0870F78809E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerT_0-1663866736805.png" alt="TylerT_0-1663866736805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 17:22:55 GMT</pubDate>
    <dc:creator>TylerT</dc:creator>
    <dc:date>2022-09-22T17:22:55Z</dc:date>
    <item>
      <title>arcgis.geometry module translate() method returns None for arcs/curved polygons</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-module-translate-method-returns/m-p/1215179#M7790</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I have encountered a case where the arcgis.geometry module translate() method returns None rather than performing a translate.&amp;nbsp; This case occurs when the geometry has arcs or curves and is described with 'curvedrings' vice 'rings'.&amp;nbsp; Have others experienced this and/or determined any valid work arounds?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerT_0-1663866736805.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/51915i0CE7D0870F78809E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerT_0-1663866736805.png" alt="TylerT_0-1663866736805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 17:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-module-translate-method-returns/m-p/1215179#M7790</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2022-09-22T17:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis.geometry module translate() method returns None for arcs/curved polygons</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-module-translate-method-returns/m-p/1215759#M7809</link>
      <description>&lt;P&gt;Following up with an example screen shot and example code...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerT_0-1663967699620.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/52082iF18516D6DF8DED09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerT_0-1663967699620.png" alt="TylerT_0-1663967699620.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import geometry

pgon1 = geometry.Geometry({"rings": [[[1275.5835581005285, 597.3732359542939], 
                                      [1275.5835581005285, 557.3732359542939], 
                                      [1195.5835581005285, 557.3732359542939], 
                                      [1195.5835581005285, 597.3732359542939], 
                                      [1275.5835581005285, 597.3732359542939]]], 
                           "spatialReference": {"wkid": None}})

pgon2= geometry.Geometry({"curveRings": [[[1275.5835581005285, 517.2014099403175], 
                                          [1275.5835581005285, 507.2014099403175], 
                                          [1195.5835581005285, 507.2014099403175], 
                                          [1195.5835581005285, 547.2014099403175], 
                                          [1245.5835581005285, 547.2014099403175], 
                                          {"c": [[1275.5835581005285, 517.2014099403175], 
                                                 [1266.796761536125, 538.4146133759139]]}]], 
                          "spatialReference": {"wkid": None}})

display(pgon1)
display(pgon2)

pgon1.translate(28, -7, inplace=True)
display(pgon1)
display(pgon1.coordinates)

pgon2.translate(28, -7, inplace=True)
display(pgon2)
display(pgon2.coordinates)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pgon2.translate(28, -7) is returning a NoneType object.&amp;nbsp; The curve seems to be throwing off the translate.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 21:19:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-geometry-module-translate-method-returns/m-p/1215759#M7809</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2022-09-23T21:19:51Z</dc:date>
    </item>
  </channel>
</rss>

