Aliases for creating SpatialReference objects (Python)

335
0
04-01-2014 04:52 AM
LT
by
Occasional Contributor
Hi Folks,

Either one of the following statements works to create a spatial reference object (or string) for uses such as calling 'CreatFeatureclass' tool:

sr="GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]], \
PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];IsHighPrecision"


or

sr = arcpy.SpatialReference('WGS 1984')



Then you can do the following to get a new feature class that uses the 'sr' variable:
arcpy.CreateFeatureclass_management(mydir,fc, 'POINT','#','#','#', sr)


Here's my question:  I like using the second statement better.  But I don't know how to refer to any other reference systems in this way, because I don't know the handle of any other ones.   Is there a list of the short names (or aliases) available for all (or at least the most popular) of the reference systems?

Thanks!
0 Kudos
0 Replies