Hi,
I hope I am able to explain my issue well enough for someone to suggest a solution.
I have data in Postgresql tables where students vote on selected issues by county. In one of the tables, I also have the date in which the votes are cast. I then have a Postgresql view that defines a count for the number of votes for each issue per county. I serve this up through Geoserver. An example vote is: For all counties in a state will each county vote a majority for republican or democrat in the upcoming election.
Everything is currently working fine with serving the counts of votes up through Geoserver. My issue is that now I would like to pass in a filter that filters the data by time the vote was cast and then returns the counts based upon the time period filtered by. I don’t think I can make my dates field visible in my view since it is not aggregated and my counts are. But then I don’t think I can pass in a filter for dates if Geoserver does not see the dates field in the featuretype.
Based upon my description, can anyone think of a way to solve this issue (either through a Postgresql view or maybe even rearranging my tables). Please let me know if you need more information or if you think this is more of a question for a Postgresql list. I would like to try to do this query on the database side instead of just aggregating things on the client. If you think this is an issue with how my database is set up, I can try to give more info about the schema.
Thanks for any help on this issue,
Scott
Scott Pezanowski
email: scottpez@anonymised.com