I wish to apply a custom coordinate system to a Map in ArcGIS Pro 1.4.1 and I read at GeoNet that this is not possible (at least up until 1.3.1).
The coordinate system that I wish to create is for GDA 1994 Queensland Albers which is identical to GDA 1994 Australia Albers except for having different central meridian and standard parallel values.
I ran the code below to create an empty feature class with a coordinate system modified from that of GDA 1994 Australia Albers:
import arcpy arcpy.management.CreateFeatureclass(r"C:\Temp\TestProject\TestProject.gdb", "QldAlbers", "POLYGON", None, "DISABLED", "DISABLED", None, None, 0, 0, 0) fc = r"C:\Temp\TestProject\TestProject.gdb\QldAlbers" srAustAlbers = arcpy.SpatialReference("GDA 1994 Australia Albers") srAustAlbersAsString = srAustAlbers.exportToString() print(srAustAlbersAsString) srQldAlbersAsString = srAustAlbersAsString.replace("Australia","Queensland").replace(",132.0",",146.0").replace(",-18.0",",-13.166667").replace(",-36.0",",-25.833333") print(srQldAlbersAsString) srQldAlbersAsString = srQldAlbersAsString.split(";") print(srQldAlbersAsString) arcpy.management.DefineProjection(fc, srQldAlbersAsString)
Armed with a feature class having my desired custom coordinate system I inserted a new Map into an ArcGIS Pro Project and used its Properties to import the custom coordinate system from that feature class.
All went well except for the warning that:
Imported coordinate system only contains xy coordinate system. Only the xy coordinate system will be changed.
Despite the warning I think I have created a Map with a valid custom coordinate system, but is this the only way to do it?