<?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: Calculating fields - add start and end coordinates of line features to table in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747824#M24539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah overall thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem above I have found out is on the client end (ie. my machine) basically it just ran out of memory.&amp;nbsp; I have now freed some memory and it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 02:00:35 GMT</pubDate>
    <dc:creator>RobertPotter</dc:creator>
    <dc:date>2013-05-16T02:00:35Z</dc:date>
    <item>
      <title>Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747816#M24531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since a wile I am serching a way to solve a problem but cant get to any result. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is to add koordinates of the startpoint and endpoint of a line-feature to its attribute table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my project I have to traw a great number of lines (representing power grid) so I manually added 4 fields (StartX, StartY, EndX, EndY). Is there any toold in arc toolbox that can help me calculate the koordinates for those 4 fields. Manually adding the data would be very time consuming. For better understanding i attached a photo with a sample of the grid (green line) and its attribute table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any kind of help&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 08:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747816#M24531</guid>
      <dc:creator>AlexanderPichlmayr</dc:creator>
      <dc:date>2013-04-16T08:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747817#M24532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right click on one of the field headings and select calculate geometry.&amp;nbsp; You'll be presented with a a pull down to select what you want to calculate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 11:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747817#M24532</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2013-04-16T11:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747818#M24533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Very good thanks a lot. That helps calculating the start and endpoint of a line-feature. Is there also a way to generate coordinates of vertex points?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 07:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747818#M24533</guid>
      <dc:creator>AlexanderPichlmayr</dc:creator>
      <dc:date>2013-04-18T07:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747819#M24534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Very good thanks a lot. That helps calculating the start and endpoint of a line-feature. Is there also a way to generate coordinates of vertex points?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=14686"&gt;Found this with a google search &lt;/A&gt;&lt;SPAN&gt;(with apologies to bing users...)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 10:08:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747819#M24534</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2013-04-18T10:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747820#M24535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey thanks for the link. I tryed it already but it seems the tool does not work on arggis 10. (tool is from 2006). When I use it it shows up with the error " no module named win32api found failed to execute". I have Python 2.6(.5) installed and tryed with downloeading the extentions already -&amp;gt; no improvement! Dont really know what elese I can try!?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 05:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747820#M24535</guid>
      <dc:creator>AlexanderPichlmayr</dc:creator>
      <dc:date>2013-04-23T05:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747821#M24536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a similar problem but I need to put the calculation of the coordinates (start and end of a line) into a model or script so it can be run on a regular basis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any clues?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 23:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747821#M24536</guid>
      <dc:creator>RobertPotter</dc:creator>
      <dc:date>2013-05-15T23:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747822#M24537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a similar problem but I need to put the calculation of the coordinates (start and end of a line) into a model or script so it can be run on a regular basis.&lt;BR /&gt;&lt;BR /&gt;Any clues?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It has to be done as a Python9_3 Field Calculation (at least at 10.0 and up) connected to a layer created with the Make Layer tool (not a feature class stored on disk, which is the normal output of most tools).&amp;nbsp; It is a simple calculation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!Shape.FirstPoint.X! - does the Start/From end X coordinate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;!Shape.FirstPoint.Y! - does the Start/From end Y coordinate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;!Shape.LastPoint.X! - does the End/To end X coordinate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;!Shape.LastPoint.Y! - does the End/To end Y coordinate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M and Z can be substituted for X or Y above, and Centroid can be used instead of FirstPoint/LastPoint to get the midpoint of the line.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000004m000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000004m000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 23:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747822#M24537</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-05-15T23:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747823#M24538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks but it didn't work, well it did for a while then I got this after nearly 3 minutes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start_X !Shape.FirstPoint.X! PYTHON_9.3 #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Thu May 16 12:00:07 2013&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: Error running expression: GPVARIANTOBJECT0.FirstPoint.X &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SystemError: error return without exception set&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The index was either too large or too small.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Calculate Field).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Thu May 16 12:02:50 2013 (Elapsed Time: 2 minutes 43 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What does it mean?&amp;nbsp; Essentially what you told me was correct and it worked a bit then stopped!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It did 1970 of the 2843 in the file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24353[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 01:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747823#M24538</guid>
      <dc:creator>RobertPotter</dc:creator>
      <dc:date>2013-05-16T01:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747824#M24539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah overall thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem above I have found out is on the client end (ie. my machine) basically it just ran out of memory.&amp;nbsp; I have now freed some memory and it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 02:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747824#M24539</guid>
      <dc:creator>RobertPotter</dc:creator>
      <dc:date>2013-05-16T02:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747825#M24540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh well as would be the case I spoke too soon.&amp;nbsp; Initially, it did finish but when I actually reviewed the results It had only calculated the coordinates for the first 1970 records (Start_X, Start_Y, End_X, End_Y) ????&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So to check that result I tried to redo it but this time ArcMap CRASHED!!!&amp;nbsp; It asked if I wanted to send an error report to ESRI and I said yes, why not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then comes the funny bit....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...then would you believe it that Crashed also!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24354[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So really it is back to my original question ... how do I do this?????&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 02:27:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747825#M24540</guid>
      <dc:creator>RobertPotter</dc:creator>
      <dc:date>2013-05-16T02:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating fields - add start and end coordinates of line features to table</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747826#M24541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Oh well as would be the case I spoke too soon.&amp;nbsp; Initially, it did finish but when I actually reviewed the results It had only calculated the coordinates for the first 1970 records (Start_X, Start_Y, End_X, End_Y) ????&amp;nbsp; &lt;BR /&gt;So to check that result I tried to redo it but this time ArcMap CRASHED!!!&amp;nbsp; It asked if I wanted to send an error report to ESRI and I said yes, why not?&lt;BR /&gt;&lt;BR /&gt;Then comes the funny bit....&lt;BR /&gt;&lt;BR /&gt;...then would you believe it that Crashed also!!!&lt;BR /&gt;[ATTACH=CONFIG]24354[/ATTACH]&lt;BR /&gt;&lt;BR /&gt;So really it is back to my original question ... how do I do this?????&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You have a corrupted point.&amp;nbsp; Probably it has no coordinate and is an empty shape.&amp;nbsp; That will fail.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Select everything that did not calculate, sort it on the objectID.&amp;nbsp; First try panning to the first record.&amp;nbsp; If it does not move the location, you have a corrupted point.&amp;nbsp; These points get created when you do not actually set the geometry of a point, but instead start entering attributes before the point ever got set (which will insert a record with empty geometry).&amp;nbsp; The same can happen with lines and polygons that have only attributes, but no geometry.&amp;nbsp; But lines and polygons are easier to find, because they always have lengths or perimeters of 0 length (points show no automatically created measurements to tell you that they are corrupt).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that is the case, deselect that first point.&amp;nbsp; Now try the calculation on the rest of that selection set.&amp;nbsp; If that works, you have confirmed that you have a corrupted point.&amp;nbsp; In any case there is no need to recalculate the points you already got coordinates assigned to for the X coordinate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check geometry might also detect any corrupted points if it fails a second time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 02:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/calculating-fields-add-start-and-end-coordinates/m-p/747826#M24541</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-05-16T02:56:31Z</dc:date>
    </item>
  </channel>
</rss>

