<?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 How do I add X-COORD and Y-COORD fields to a point feature class? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-add-x-coord-and-y-coord-fields-to-a-point/m-p/756088#M20053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to find code in Visual Basic 6.5 that will add (and calculate) X- and Y- coordinate fields to an existing point feature class.&amp;nbsp; Preferably, there would be a way to do this with shapefiles, but I suspect that I will first need to convert to coverages as this is the data type for which the 'Addxy' command was written.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Desktop help gives the following script example under "Add XY Coordinates (Coverage)(ArcInfo only)":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.workspace = "c:/temp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.toolbox = "arc"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.addxy("wells", "point")"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus far I have been unable to get this to work.&amp;nbsp; Is there a way to direct the last line to a known coverage, e.g., "gp.addxy('C:\Temp\PtCov', Point)"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Aug 2010 17:15:09 GMT</pubDate>
    <dc:creator>GordonReese</dc:creator>
    <dc:date>2010-08-20T17:15:09Z</dc:date>
    <item>
      <title>How do I add X-COORD and Y-COORD fields to a point feature class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-add-x-coord-and-y-coord-fields-to-a-point/m-p/756088#M20053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to find code in Visual Basic 6.5 that will add (and calculate) X- and Y- coordinate fields to an existing point feature class.&amp;nbsp; Preferably, there would be a way to do this with shapefiles, but I suspect that I will first need to convert to coverages as this is the data type for which the 'Addxy' command was written.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Desktop help gives the following script example under "Add XY Coordinates (Coverage)(ArcInfo only)":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.workspace = "c:/temp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.toolbox = "arc"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.addxy("wells", "point")"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus far I have been unable to get this to work.&amp;nbsp; Is there a way to direct the last line to a known coverage, e.g., "gp.addxy('C:\Temp\PtCov', Point)"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 17:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-add-x-coord-and-y-coord-fields-to-a-point/m-p/756088#M20053</guid>
      <dc:creator>GordonReese</dc:creator>
      <dc:date>2010-08-20T17:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add X-COORD and Y-COORD fields to a point feature class?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-add-x-coord-and-y-coord-fields-to-a-point/m-p/756089#M20054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Apologies for the original post, I was not aware, obviously, of the 'Add XY Coordinates' tool in "Data Management Tools &amp;gt;&amp;gt; Features".&amp;nbsp; It is easily implemented in code with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.AddXY_management PtShape&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 17:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-add-x-coord-and-y-coord-fields-to-a-point/m-p/756089#M20054</guid>
      <dc:creator>GordonReese</dc:creator>
      <dc:date>2010-08-20T17:54:40Z</dc:date>
    </item>
  </channel>
</rss>

