Howdy Ho All:
Has anyone been able to use the ConvertCoordinateNotation_management tool with input and output geometry objects? I've been able to use the geometry objects in other tools be this one returns me "unable to convert coordinate". I'd really rather not loop all my geometries write a file, then re-read the file and re-associated the coordinate with the existing data. Hopefully I'm just not getting the parameter correct for this type of usage. Example:
Has anyone been able to use the ConvertCoordinateNotation_management tool with input and output geometry objects? I've been able to use the geometry objects in other tools be this one returns me "unable to convert coordinate". I'd really rather not loop all my geometries write a file, then re-read the file and re-associated the coordinate with the existing data. Hopefully I'm just not getting the parameter correct for this type of usage. Example:
Code:
gcsnad83 = arcpy.SpatialReference(4269)
pt = arcpy.Point()
pt.X = 42.6544321
pt.Y = -143.132412
ptg = arcpy.PointGeometry(pt,gcsnad83)
g = arcpy.Geometry()
s = arcpy.ConvertCoordinateNotation_management(ptg, g, "#", "#", "SHAPE", "MGRS", "#", "#")
print(arcpy.GetMessages(0))
print s