kevinschaul / binify

A command-line tool to better visualize crowded dot density maps.
MIT License
157 stars 11 forks source link

Pass a parameter to COUNT? #21

Open wilson428 opened 11 years ago

wilson428 commented 11 years ago

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?

kevinschaul commented 11 years ago

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?

wilson428 commented 11 years ago

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).