I am trying to plug in a projection name to my code, but I think the syntax/name is incorrect.
arcpy.env.outputCoordinateSystem = arcpy.SpatialReference("US Albers Equal Area Conic")
When I run the above it throws:
RuntimeError: ERROR 999999: Error executing function. the input is not a geographic or projected coordinate system.
I cannot seem to find documentation on how the projection/coordinate system names should be given when using as parameters for arcpy
.
Any suggestions?
arcpy.SpatialReference(8075)
, dont know if it is the correct one. If you want to use name you can check it with:arcpy.SpatialReference(8075).name
– BERA Nov 13 '18 at 18:32RuntimeError: ERROR 999999: Error executing function. the input is not a geographic or projected coordinate system
. – gwydion93 Nov 13 '18 at 19:34EPSG factoryCode
. 102008 is the correct one. So,arcpy.SpatialReference(102008).name
returns 'North_America_Albers_Equal_Area_Conic'. But I am still not sure if I need to use that or "North America Albers Equal Area Conic". – gwydion93 Nov 13 '18 at 19:52