AnsweredAssumed Answered

Set a coordinate system to "Unknown" with Python

Question asked by Randy_NRG on Nov 16, 2015
Latest reply on Nov 16, 2015 by Randy_NRG

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

Outcomes