shrug-l: Lat/Longs in an Attribute Table

Glombowski, Patina Patina.Glombowski at dep.state.fl.us
Thu Apr 12 09:54:07 EDT 2007


I used the ESRI script copied below to add fields to a point layer's
attribute table (for latitude and longitude) and to have the fields populated
with each feature's respective coordinates.  

 

This worked great.  

 

Question/Problem/Issue:

When the layer is edited (the point locations are moved), the attribute table
does not automatically update lat/longs to reflect the change in location.

 

Is there a script that would not only add the respective coordinates for each
point location at the time the script is ran, but would also update the
lat/longs when a feature's location is changed?

 

Thanks for your help.

 

Have a great day,

 

Patina

Add Latitude and Longitude



contact author <http://arcscripts.esri.com/ContactAuthor.asp?dbid=14824>  |
download help <http://arcscripts.esri.com/help/help.asp#download>  | add
bookmark
<http://support.esri.com/index.cfm?fa=myAccount.saveBookmark&artArea=ArcScrip
ts&artID=14824>  | view bookmarks
<http://support.esri.com/index.cfm?fa=myAccount.viewBookmarks>  

Author

Dean Thevaos <http://arcscripts.esri.com/ContactAuthor.asp?dbid=14824> 

File Name

GetCoordinatesDD_DMS.dll

Language

Visual Basic

Last Modified

Dec 4 2006 

Status of work

Public Domain

Software

ArcGIS Desktop

File Size

56 kb

Downloads

864


 ArcScripts is intended for the free exchange of scripts and tools related to
ESRI software products. Please alert the moderator if this script is a demo,
trial-version, or an advertisement for a retail product. 


Summary

Adds four fields to the selected point layer in the TOC; LongDD contains
Longitude of the point in Decimal Degrees, LatDD contains Lattitude of the
point in Decimal Degrees, LongDMS contains Longitude of the point in Degrees
Minutes Seconds, LatDMS contains Lattitude of the point in Degrees Minutes
Seconds. The fields are populated with their respective coordinates in
esriSRGeoCS_NAD1983. Written by Dean Thevaos and Jon DeRose

 

 

Patina J. Glombowski

GIS Analyst/Environmental Specialist

Florida Dept. of Environmental Protection, SW District

13051 N. Telecom Parkway

Temple Terrace, FL  33637-0926

(813) 632-7600 x488

SC:  514-9155

Fax:  (813) 632-7663

Patina.Glombowski at dep.state.fl.us

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.dep.state.fl.us/pipermail/shrug-l/attachments/20070412/8e257d03/attachment.htm


More information about the SHRUG-L mailing list