I am puzzled by a simple problem. I don't know how to access a point object's x and y coordinate from a arctoolbox in python script.
It can be accessed this way:
pnt=arcpy.GetParameterAsText(0).split() # c1 is a point object in arctoolbox interface
It's not ideal because the code will fail when the x and y are inputed in different decimal seperator, say ',' format.
So I use:
But what's the method to get pnt.X and pnt.Y?