binify icon indicating copy to clipboard operation
binify copied to clipboard

Pass a parameter to COUNT?

Open wilson428 opened this issue 11 years ago • 2 comments

In many cases, I have a series of points that are already aggregate values of some data point. For example, I might have a point for every county with an attached field in the .shp file for jobs created in that county in the past month.

My goal in this case would be to create hexagonal bins where COUNT = jobs in that hexagon. Would it be possible for COUNT to represent not just an actual count but a sum of a given field?

wilson428 avatar May 03 '13 14:05 wilson428

Makes sense. Any solution might as well fix issue #8, too. I'm trying to envision how such an option would be structured.

My initial thought isn't very good: --accumulate-type sum --accumulate-column FIELD

Suggestions?

kevinschaul avatar May 03 '13 17:05 kevinschaul

I think that would work just fine. There should probably still be a raw COUNT field that always means the same thing, and this flag would add a data property with the name of FIELD and the value of the sum (or whatever else it is).

wilson428 avatar May 06 '13 16:05 wilson428