Closed chelm closed 9 years ago
merging with master still... so many standardisms...
okay @dmfenton you want to take a peek here? All this does is add the getStats call, it wont be used yet.
@dmfenton ready
@dmfenton wait no its not
@dmfenton now you are ready to go for reals...
ok, let me pull this down and play around with it and get back at you tonight
@dmfenton I think the idea of support multiple is fine. I think if that'd be what we want here then we'd refactor this to always take an array of stats objects, build the sql we want in one method, then execute the query, and finally process and restructure the result rows for responding to the request.
In this version of the stats the Controller makes a request for one stat at a time and builds up the response to the user request as the db returns results. Which i think is fine. I am willing to bet that speed wise its not that much different.
woot
This adds a getStat method for calculating stats directly from the db. This will be used by koop BaseController when making requests for outStatistics on featureservices.
All tested too.