<?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 Adding XY fields to .shp file in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113195#M3857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a .shp file that I need to export to another external program. The .shp file does not have X or Y fields. Can someone please explain how I would be able to generate such Fields from the .shp file&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 16:38:07 GMT</pubDate>
    <dc:creator>MikeWhite1</dc:creator>
    <dc:date>2012-06-13T16:38:07Z</dc:date>
    <item>
      <title>Adding XY fields to .shp file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113195#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a .shp file that I need to export to another external program. The .shp file does not have X or Y fields. Can someone please explain how I would be able to generate such Fields from the .shp file&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 16:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113195#M3857</guid>
      <dc:creator>MikeWhite1</dc:creator>
      <dc:date>2012-06-13T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding XY fields to .shp file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113196#M3858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a .shp file that I need to export to another external program. The .shp file does not have X or Y fields. Can someone please explain how I would be able to generate such Fields from the .shp file&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Management Tools &amp;gt; Features &amp;gt; Add XY Coordinates&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 16:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113196#M3858</guid>
      <dc:creator>MathieuCain</dc:creator>
      <dc:date>2012-06-13T16:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding XY fields to .shp file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113197#M3859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tried that option. It comes up with an error "000366: Invalid Geometry Type".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On a side Note, the Polygon I am trying to find XY data for is a polygon of Greenland. I created the shapefile of Greenland from an existing map and the atrribute fields I have are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FID&amp;nbsp;&amp;nbsp;&amp;nbsp; Shape&amp;nbsp;&amp;nbsp;&amp;nbsp; ScaleRank&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Featureclass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 17:14:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113197#M3859</guid>
      <dc:creator>MikeWhite1</dc:creator>
      <dc:date>2012-06-13T17:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding XY fields to .shp file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113198#M3860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tried that option. It comes up with an error "000366: Invalid Geometry Type".&lt;BR /&gt;&lt;BR /&gt;On a side Note, the Polygon I am trying to find XY data for is a polygon of Greenland. I created the shapefile of Greenland from an existing map and the atrribute fields I have are as follows:&lt;BR /&gt;&lt;BR /&gt;FID&amp;nbsp;&amp;nbsp;&amp;nbsp; Shape&amp;nbsp;&amp;nbsp;&amp;nbsp; ScaleRank&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Featureclass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Note&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you want your coordinates to represent? The "Add XY Coordinates" tool works on Point features. Do you want coordinates for each of the nodes making up your polygon or do you want the coordinates for say the centre point of your polygon?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 17:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113198#M3860</guid>
      <dc:creator>MathieuCain</dc:creator>
      <dc:date>2012-06-13T17:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding XY fields to .shp file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113199#M3861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need the XY coordinates for each of the nodes making up the polygon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 17:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113199#M3861</guid>
      <dc:creator>MikeWhite1</dc:creator>
      <dc:date>2012-06-13T17:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding XY fields to .shp file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113200#M3862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'd need to convert the polygons to points first (try ET Geowizards for that), then use the Add XY Coordinates tool on the new point shape file&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 17:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113200#M3862</guid>
      <dc:creator>michaelcollins1</dc:creator>
      <dc:date>2012-06-13T17:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding XY fields to .shp file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113201#M3863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I need the XY coordinates for each of the nodes making up the polygon&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To calculate the coordinates of the centroid of each polygon, you would have simply created two empty X and Y double fields in your feature class' attribute table and then right clicked on each field and calculated it's geometry using "X Coordinate of Centroid"/"Y Coordinate of Centroid".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, in your case you will need to first convert your polygon layer to points and then run aforementioned tool. For ease of use, I would likely use ET GeoWizards' Polygon to Point tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 17:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113201#M3863</guid>
      <dc:creator>MathieuCain</dc:creator>
      <dc:date>2012-06-13T17:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding XY fields to .shp file</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113202#M3864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get all polygon vertices you can also use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000003p000000"&gt;Feature Vertices To Points tool.&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;And then use Add XY Coordinates tool as it was said.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to directly export vertex coordinates to text file, try the script presented in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/59759-How-to-identify-feature-vertices-that-are-part-of-a-donut-hole-in-ArcGIS-10?p=206137&amp;amp;viewfull=1#post206137"&gt;this thread&lt;/A&gt;&lt;SPAN&gt; (it exports coordinates and reports inner rings).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 07:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/adding-xy-fields-to-shp-file/m-p/113202#M3864</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-14T07:18:22Z</dc:date>
    </item>
  </channel>
</rss>

