Select to view content in your preferred language

Calculate UTM positions using Python?

708
3
Jump to solution
11-15-2022 02:33 PM
MiltonSolano
Frequent Contributor

Hi Community!

I hope I'm posting on the right forum, if not, help me pointing out the right one.

I have a team capturing Tree locations using Field Maps. These trees have decimal degrees X, Y positions already captured on the fields. I need to automate the calculation for UTM_X and UTM_Y fields for the new trees captured and I would like to setup a Scheduled task in ArcGIS Notebook Script to update these field at the end of the week. Another person from the team export these new trees using a view to an excel spreadsheet for further processing.

Can you help me with the basic python code to start doing this (if it is possible of course). Right now I have to do it in ArcGIS Pro.

Milton

0 Kudos
1 Solution

Accepted Solutions
DavidAnderson_1701
Frequent Contributor

Easy.  Use command:

arcpy.management.CalculateGeometryAttributes

It will let you calculate X and Y coordinates in whatever coordinate system you want.

View solution in original post

3 Replies
DavidAnderson_1701
Frequent Contributor

Easy.  Use command:

arcpy.management.CalculateGeometryAttributes

It will let you calculate X and Y coordinates in whatever coordinate system you want.

MiltonSolano
Frequent Contributor

Thank you @DavidAnderson_1701 ,

This will work on ArcGIS Pro environment but I need a way to do it in ArcGIS Online, using Notebooks. Thank you for taking the time to answer.

Milton

0 Kudos
NicholasGiner1
Esri Contributor

Hi Milton, you should be able to do this in ArcGIS Online via a scheduled notebook.  To use ArcPy within the notebook, you'll have to choose the Advanced runtime.

thanks!

Nick Giner, Product Manager

0 Kudos