<?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: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1 in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636499#M35968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe if you use the Python parser it is just:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!SHAPE.X!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or else perhaps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!SHAPE.FirstPoint.X!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 16:07:28 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2011-12-05T16:07:28Z</dc:date>
    <item>
      <title>HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 10.</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636497#M35966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a dataset in a .gdb with WSG_84 projection. Have added two fields Latitude, Longitude using field type Double. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would like to calculate Latitude/Longitude for this dataset using Field Calculator using VB Script in ArcView 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have tried coding below from Knowledge Base &amp;gt; Technical Article 31863:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim Output As Double &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pPoint As IPoint &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pPoint = [Shape] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Output = pPoint.X&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Long = Output&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does not work; 'Failure during processing' error generated and field values 'Null'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions as to how I can generate Lat/Long values using Field Calculator in ArcView 10?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Melanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 09:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636497#M35966</guid>
      <dc:creator>MelanieMageean</dc:creator>
      <dc:date>2011-12-05T09:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636498#M35967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can calculate geometry without using the Field Calculator.&amp;nbsp; Right click the field &amp;gt; Calculate Geometry.&amp;nbsp; You can chose the desired geometry and the coordinate system to use.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 12:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636498#M35967</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2011-12-05T12:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636499#M35968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe if you use the Python parser it is just:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!SHAPE.X!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or else perhaps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;!SHAPE.FirstPoint.X!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 16:07:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636499#M35968</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2011-12-05T16:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636500#M35969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're right Richard, you can also use: !SHAPE.FirstPoint.X! and !SHAPE.FirstPoint.Y!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 16:15:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636500#M35969</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2011-12-05T16:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636501#M35970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried the !SHAPE.FirstPoint.X! and !SHAPE.FirstPoint.Y! python code after I geocated locations with an X and a Y and I did get results without any error codes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My results looked like this: 2554640.03118 (latitude), 395983.7615536 (longitude)&amp;nbsp; for all of my addresses that are located in Wisconsin, USA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I am skeptical of using the results because the results for Latitude(x) were positive instead of negative.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am not using what I get from&amp;nbsp; !SHAPE.FirstPoint.X! and !SHAPE.FirstPoint.Y! in version 10 SP1 of ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(In the USA, longitude is negative being west of the Prime meridian, and latitude is positive&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;as it is north of the equator.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 19:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636501#M35970</guid>
      <dc:creator>BonniePionke</dc:creator>
      <dc:date>2012-03-09T19:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636502#M35971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I tried the !SHAPE.FirstPoint.X! and !SHAPE.FirstPoint.Y! python code after I geocated locations with an X and a Y and I did get results without any error codes.&amp;nbsp; &lt;BR /&gt;My results looked like this:&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;2554640.03118 (latitude), 395983.7615536 (longitude)&lt;/SPAN&gt; for all of my addresses that are located in Wisconsin, USA.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;However, I am skeptical of using the results because the results for&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Latitude(x) were positive instead of negative&lt;/SPAN&gt;.&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;So I am not using what I get from !SHAPE.FirstPoint.X! and !SHAPE.FirstPoint.Y! in version 10 SP1 of ArcGIS.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;(In the USA, longitude is negative being west of the Prime meridian, and latitude is positive&amp;nbsp; &lt;BR /&gt;as it is north of the equator.)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bonnie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you hadn't noticed, the output you quote for lat-long are &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;projected UTM coordinates &lt;/SPAN&gt;&lt;SPAN&gt;not degrees of lat and long so they are always positive within the region applicable to the UTM zone (and a lot longer than degrees). To output latitude and longitude just run Field Calculator on the new fields you added as Timothy Hales previously suggested &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"You can calculate geometry without using the Field Calculator. Right click the field &amp;gt; Calculate Geometry. You can chose the desired geometry and the coordinate system to use." &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; or in other words, just select the Units as decimal degrees from the pull down menu when you activate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hardolph&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2012 18:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636502#M35971</guid>
      <dc:creator>HardolphWasteneys</dc:creator>
      <dc:date>2012-03-14T18:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636503#M35972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an issue similar to this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to fill a field with the coordinates of points using the calculate geometry function. However, of the scales that I can select from, I cannot select Lat and Long but I can select decimal degrees. What I'm wondering is if it's possible to create, for example, a new field and use a python statement to manipulate the field filled with the decimal degrees to convert them to lat and long coordinates. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 10:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636503#M35972</guid>
      <dc:creator>AndrewRoberts2</dc:creator>
      <dc:date>2012-08-13T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636504#M35973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hey guys, &lt;BR /&gt;&lt;BR /&gt;I have an issue similar to this...&lt;BR /&gt;&lt;BR /&gt;I know how to fill a field with the coordinates of points using the calculate geometry function. However, of the scales that I can select from, I cannot select Lat and Long but I can select decimal degrees. What I'm wondering is if it's possible to create, for example, a new field and use a python statement to manipulate the field filled with the decimal degrees to convert them to lat and long coordinates. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;-Andrew&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Andrew,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you refer to lat/long coordinates, are you referring to Degrees, Minutes, Seconds?&amp;nbsp; Decimal degrees is technically lat/long.&amp;nbsp; There is a tool to convert between coordinate formats:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0017000000tw000000"&gt;Convert Coordinate Formats&lt;/A&gt;&lt;SPAN&gt; (Data Management &amp;gt; Projections and Transformations)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&amp;nbsp; Please let me know if you are looking for something different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Timothy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 11:19:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636504#M35973</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2012-08-13T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: HowTo: Calculate Latitude and Longitude values using Field Calculator - ArcView 1</title>
      <link>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636505#M35974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Tim, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks I didn't know about this tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the confusion, I have coordinates in decimal degrees (DD) and want to convert them to Lat and Longitude (DMS.) This tool seems like it will definitely do the job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 12:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/howto-calculate-latitude-and-longitude-values/m-p/636505#M35974</guid>
      <dc:creator>AndrewRoberts2</dc:creator>
      <dc:date>2012-08-13T12:02:04Z</dc:date>
    </item>
  </channel>
</rss>

