Spatial Reference Code for Calculating Geometry

691
5
10-25-2018 11:50 AM
JimFritz
Occasional Contributor

The Spatial Reference Code for NAD_1983_UTM_Zone_15N is 26915.

Does anyone know if a Spatial Reference Code exists for NAD_1983_UTM_Zone_15N with units as US Feet?

If not, does someone know how to use python to set the Reference Frame of an mxd so it could be used in lieu of having a Spatial Reference Code defined as above.

I'm hoping to loop thru a layer list and calculate geometry to X_coord and Y_coord fields with UTM Zone 15N values in US Feet.

Thanks,

Jim

0 Kudos
5 Replies
RandyBurton
MVP Alum

I think it is 32065.  https://epsg.io/32065

sr = arcpy.SpatialReference(32065)‍‍‍
0 Kudos
JimFritz
Occasional Contributor

Thanks, Randy.

0 Kudos
JimFritz
Occasional Contributor

This one described NAD 1927, looking for NAD 83.

Thanks,

Jim Fritz, GISP

Xcel Energy | Responsible By Nature

Sr. Geospatial Analyst

414 Nicollet Mall, 6th Floor, Minneapolis, MN 55401

P: 612.330.6956 C: 781.588.5829 F: 612.330.6590

E: james.w.fritz@xcelenergy.com<mailto:james.w.fritz@xcelenergy.com>

0 Kudos
DanPatterson_Retired
MVP Emeritus
RandyBurton
MVP Alum

Maybe this code: 32165

fc = r'C:\path\to\feature\using\sr\file.gdb\feature'
sr = arcpy.Describe(fc).spatialReference
print sr.name
# u'NAD_1983_BLM_Zone_15N_ftUS'
print sr.factoryCode
# 32165
0 Kudos