Select to view content in your preferred language

Set a coordinate system to "Unknown" with Python

5607
10
Jump to solution
11-16-2015 08:06 AM
RandyMcGregor
Deactivated User

I have a script tool that creates outputs with unknown coordinate systems. This is as designed. The outputs are profiles, created from an x,y table.

Recently (10.3?), the tool has been failing and that seems to be because ArcMap wants to apply the wgs84 coordinate system by default when none is specified.

I want it to be "Unknown" or "Undefined" both of which fail when I enter them into the MakeXY_Table_management tool:

  arcpy.MakeXYEventLayer_management(proftab,"PROF_X","PROF_Y",profptlyr,"Unknown","#")

This also fails:

    arcpy.DefineProjection_management(profptlyr,coor_system="Unknown"), although I can enter "Unknown" when I run the DefineProjection tool from the toolbox.

The coord_system input is considered illegitimate.

Is it possible to do this?

Thanks

0 Kudos
10 Replies
RandyMcGregor
Deactivated User

I like this as a way around the possibility that ESRI might change that horrible GUID thingamajigger.

0 Kudos