<?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: How to Visualize a polygon coordinate in ArcMap in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356514#M28038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The format you have in column G (COORD) is the WKT format. You can convert these coordinates pretty easy using arcpy (I have truncated the coordinates for readability):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst = ['POLYGON((4.862563 52.429738,4.862689 52.429747, etc))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.949747 52.295639,4.949747 52.295551, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.875532 52.40248,4.846486 52.385999, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.887551 52.406914,4.887522 52.406819, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.913632 52.324501,4.912419 52.324293, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'POLYGON((5.017926 52.31812,5.008508 52.320116, etc))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'POLYGON((5.009507 52.302302,5.009488 52.302189, etc))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.977376 52.379963,4.97689 52.37982, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.979968 52.369252,4.979748 52.368883, etc)))']

&amp;nbsp;&amp;nbsp;&amp;nbsp; res = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; for p in lst:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = arcpy.FromWKT(p)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; res.append(polygon)

&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out = r"C:\Forum\WKT\test01.shp"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(res, fc_out)

if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code just converts the polygons, no attributes are taken over to the shapefile. &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/116996_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;After this I run the repair geometry (due to the incorrect order of the coordinates in the rings) and set the coordinate system to WGS1984.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attached the shapefile with the (multi)polygons (including a shapefile using RD_New coords).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 16:40:49 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2021-12-11T16:40:49Z</dc:date>
    <item>
      <title>How to Visualize a polygon coordinate in ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356512#M28036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear people,&lt;/P&gt;&lt;P&gt;I am a beginner in arcgis, I have problems to an Excel file with a coordinate information (These are the coordinates of a few polygons, see Appendix), how can I visualize these coordinates in ArcMap as a shapefile?,&lt;/P&gt;&lt;P&gt;Is there somebody help me to solve this ?, thx a lot .....&lt;/P&gt;&lt;P&gt;regards, Lion@g&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2015 19:56:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356512#M28036</guid>
      <dc:creator>IgnatiusRumambi</dc:creator>
      <dc:date>2015-07-12T19:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Visualize a polygon coordinate in ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356513#M28037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignatius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your questioned is marked as "assumed answered" - were you able to figure out a method? If not, I have a suggestion... It looks like each record contains a coordinate pair (longitude, latitude in your case) array - WGS coordinates landing somewhere in the Netherlands, if I'm correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are posting in the Python forum, here's a script that would help to read the linear coordinates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000001v000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note - you'll have to copy the link above... the Geonet forum seems to be routing it to the main help page...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to do some formatting to make it look like the example - just remember... latitude = y; longitude = x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2015 21:17:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356513#M28037</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-07-12T21:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Visualize a polygon coordinate in ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356514#M28038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The format you have in column G (COORD) is the WKT format. You can convert these coordinates pretty easy using arcpy (I have truncated the coordinates for readability):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; import arcpy
&amp;nbsp;&amp;nbsp;&amp;nbsp; lst = ['POLYGON((4.862563 52.429738,4.862689 52.429747, etc))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.949747 52.295639,4.949747 52.295551, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.875532 52.40248,4.846486 52.385999, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.887551 52.406914,4.887522 52.406819, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.913632 52.324501,4.912419 52.324293, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'POLYGON((5.017926 52.31812,5.008508 52.320116, etc))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'POLYGON((5.009507 52.302302,5.009488 52.302189, etc))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.977376 52.379963,4.97689 52.37982, etc)))',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MULTIPOLYGON(((4.979968 52.369252,4.979748 52.368883, etc)))']

&amp;nbsp;&amp;nbsp;&amp;nbsp; res = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; for p in lst:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon = arcpy.FromWKT(p)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; res.append(polygon)

&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_out = r"C:\Forum\WKT\test01.shp"
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyFeatures_management(res, fc_out)

if __name__ == '__main__':
&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code just converts the polygons, no attributes are taken over to the shapefile. &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/116996_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;After this I run the repair geometry (due to the incorrect order of the coordinates in the rings) and set the coordinate system to WGS1984.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attached the shapefile with the (multi)polygons (including a shapefile using RD_New coords).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:40:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356514#M28038</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-11T16:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Visualize a polygon coordinate in ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356515#M28039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca,First I want to thank you for your response Regarding my question "how to vizualize a polygon coordinates in ArcMap" ..My apologies for the late response, at this moment I do not have the opportunity to work with arcgis, hopefully I can work again a.s.a.p.Thank you again here, I appreciate your help very much,greetings,Liong Rumambi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2015 07:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-visualize-a-polygon-coordinate-in-arcmap/m-p/356515#M28039</guid>
      <dc:creator>IgnatiusRumambi</dc:creator>
      <dc:date>2015-07-18T07:28:08Z</dc:date>
    </item>
  </channel>
</rss>

