<?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: writing wkt using arcpy.da in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674398#M52149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is one of those lost in translation moments.&amp;nbsp; Esri doesn't implement a Polygon and Multipolygon, they implement a "Polygon" that is a Multipolygon.&amp;nbsp; Esri's polygon can be single or multipart, but they treat them both the same for translating to OGC's WKT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 21:51:40 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2015-04-14T21:51:40Z</dc:date>
    <item>
      <title>writing wkt using arcpy.da</title>
      <link>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674397#M52148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've writing a python script that coverts data to WKT. It works fine except it seems to assume that all source polygon layers are multipolygons, even if they aren't.&amp;nbsp; The syntax is correct for multipolygon, but it seems that the data access module treats all &lt;A href="mailto:shape@wkt"&gt;shape@wkt&lt;/A&gt; commands and returns multipolygon even when the when the source data is a single polygon that doesn't participate in multipart geometry. Has anyone else noticed this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 20:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674397#M52148</guid>
      <dc:creator>karenpayne</dc:creator>
      <dc:date>2015-04-14T20:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: writing wkt using arcpy.da</title>
      <link>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674398#M52149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is one of those lost in translation moments.&amp;nbsp; Esri doesn't implement a Polygon and Multipolygon, they implement a "Polygon" that is a Multipolygon.&amp;nbsp; Esri's polygon can be single or multipart, but they treat them both the same for translating to OGC's WKT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 21:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674398#M52149</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-04-14T21:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: writing wkt using arcpy.da</title>
      <link>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674399#M52150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know - thanks Josh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 21:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674399#M52150</guid>
      <dc:creator>karenpayne</dc:creator>
      <dc:date>2015-04-14T21:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: writing wkt using arcpy.da</title>
      <link>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674400#M52151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant to include the following in my original reply but had to step away.&amp;nbsp; You can see what I am talking about by using three different ways to create an ArcPy Polygon and then return the WKT for all three:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; polys = [
...&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FromWKT("POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))"),
...&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.FromWKT("MULTIPOLYGON(((0 0, 1 0, 1 1, 0 1, 0 0)))"),
...&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Polygon(
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Array([
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(0, 0),
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(1, 0),
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(1, 1),
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(0, 1),
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Point(0, 0)
...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ])
...&amp;nbsp;&amp;nbsp;&amp;nbsp; )
... ]
...
&amp;gt;&amp;gt;&amp;gt; &lt;SPAN style="color: #004da8;"&gt;for&lt;/SPAN&gt; poly &lt;SPAN style="color: #004da8;"&gt;in&lt;/SPAN&gt; polys:
...&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #004da8;"&gt;print&lt;/SPAN&gt; poly.WKT
...&amp;nbsp;&amp;nbsp; 
MULTIPOLYGON (((0 0, 1 0, 1 1, 0 1, 0 0)))
MULTIPOLYGON (((0 0, 1 0, 1 1, 0 1, 0 0)))
MULTIPOLYGON (((1.0001220703125 0, 1.0001220703125 1.0001220703125, 0 1.0001220703125, 0 0, 1.0001220703125 0)))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/writing-wkt-using-arcpy-da/m-p/674400#M52151</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T04:26:44Z</dc:date>
    </item>
  </channel>
</rss>

