Select to view content in your preferred language

Getting the Latitude of Origin for a spatial reference

4511
10
Jump to solution
06-05-2013 01:12 PM
timloesch
New Contributor
Greetings,

I'm using Python to extract the parameters of projected coordinate systems but I'm finding that the SpatialReference object does not have a .latitudeOfOrigin property that I need to extract.

When I look at the projection parameters in ArcMap the latitude of origin is there but I cannot find where to access that value in the SpatialReference object. I can get all of the other parameters but this seems to be missing.

Can someone point me in the right direction?

thanks

tim
Tags (2)
0 Kudos
10 Replies
ShaunWalbridge
Esri Regular Contributor

As of ArcGIS 10.3, this issue is fixed and you can directly use the latitudeOfOrigin property:

>>> sr = arcpy.SpatialReference("NAD 1983 Contiguous USA Albers")

>>> sr.latitudeOfOrigin

23.0

I'd use that over the solution I'd originally posted above for any newer release.