How is it possible to change the precision of calculated geometry for a text field?
By default DMS are calculated DD MM SS.sss
I wish to calculate and display DD MM SS.ssss (4 decimal places) in my attributes.
Ok, I got it. From the calculate geometry help: "The Calculate Geometry dialog box respects the number of decimal places (three, by default) specified on the General tab of the Editing Options dialog box. To change this setting, click the Editor menu on the Editor toolbar and click Options. This setting is saved in the map document." It's true, I tried it.
I think it has to do with how you set up the precision of the field when you create it.
Given.... Measuring in Arc-Seconds and other sources like Latitude - Wikipedia, the free encyclopedia
one second is 1/3600 of a degree, which at the equator is about 110,574 m... 1 second is about 30.7 m
if you want that to 4 decimal places that would mean about 3.07x10^-3 m or 0.0037 m .... are you sure that the fractions of a millimeter is really needed? What are you measuring and how?
Hi Dan, I understand it may seem silly to go to 4 decimal places, however the data must be attributed exactly as it is described.
I know the descriptions may be unnecessarily precise, but they are what they are.
is the output from the Convert Coordinate Notation toolset? you may have to assemble your own format as a string if you cant get the numbers you need
in this reference in defense ArcGIS Help (10.2, 10.2.1, and 10.2.2)
it suggests a default of 3 is used, which implies, you can change it...at least in that toolbox
What field type are you calculating the coordinates into?
I would like to calculate into a string field, just with the precision to one more decimal place.
This is so that the presentation of the coordinates in the attributes can match the description.
Try calculating it to a float, and then you can calculate to a string after.
Are you looking for a field calculator expression? something to translate this...
045° 30' 04.4444"
-045° 30' 04.4444"
145° 30' 04.4444"
-145° 30' 04.4444"
or do you want that E/W N/S thing ?
I have something that seems to work the same as the link.. Decimal Degree to DMS convertor. I so I am posting something in my blog about formatting and used this example as a conversion. See
The specified item was not found.
I should be done editing it today
Thanks for looking into this Dan.
My process workflow is as follows...
1. Create spreadsheet table containing list of coordinates (source coordinate format DD MM SS.ssss)
2. Inside the spreadsheet table, create fields that convert the soure coord format to Decimal Degrees
3. In ArcCatalog create points feature class from the spreadsheet of coordinates using Decimal Degrees field for Lat and Lon.
4. Create text fields in the points feature class and calculate geometry.
5. I want the calculate geometry result to exactly replicate the source coordinates in DD MM SS.ssss (with the E/W and N/S thing).
I know the geometry must be inherent in the features, it's just a matter of extracting the right precision.
I have looked into your Conversion and Formatting post, but I'm not so sure if it will do what I want.
You could try it
Did you try setting the decimal places in editing options, as I suggested?
Sephe, yes! Thank you so much for your help. I knew the answer had to be something simple, and it was that setting in the Editing Options under General tab! On one hand I feel a bit stupid for never finding this option, but then I asked so many people, and nobody else I spoke with knew how to do it either, or would query my need to do it in the first place!
Dan, thanks for all your efforts with the python wizardry. Perhaps it might help others.
grief... never rule out the 'obvious' since 'obvious' never is
Retrieving data ...