I am having an issue running the GeoAnalytics Aggregate Points tool in a script.
Specifically, I seem to be stumbling on the "summary fields" option. I have my code set as follows:
arcpy.geoanalytics.AggregatePoints(inFeature, "output_name", 'BIN',None, 'HEXAGON', '500 Meters',None,None,None, ['ele_count','SUM'])Running this line of code results in this error:
ERROR 000800: The value is not a member of COUNT | SUM | MEAN | MIN | MAX | STDDEV | VAR | RANGE | ANY.
I have tried changing "SUM" to title-case ("Sum") and multiple variations of quotation marks and no quotation marks, comma and no comma, square bracket and no square brackets.
The documentation is frustratingly unclear on how to structure this option in the code.
What am I missing?
Thanks!
Solved! Go to Solution.
The python documentation does need work, but I am wondering if it needs a list of lists.
You have... ['ele_count','SUM']
try ... [['ele_count','SUM']]
If that doesn't work, I would try Tech Support and flag the documentation page .... Feedback on this topic ... on the bottom right of the help topic page
The python documentation does need work, but I am wondering if it needs a list of lists.
You have... ['ele_count','SUM']
try ... [['ele_count','SUM']]
If that doesn't work, I would try Tech Support and flag the documentation page .... Feedback on this topic ... on the bottom right of the help topic page