I am hoping someone can help me on this one as i have been trying to find the solution for a long time without success.
I have a polygon shape-file which i am displaying on browser using geoserver . I have color-coded the polygons (by creating an SLD file) based on the values of one of the attributes(say "count") in the shape-file.
My problem is that i want to update the "count" attribute (which is an integer) regularly(on a daily basis) and hence i want to reflect this change in the geoserver. I am getting the values for "count" attribute through a java service which i have up and running . But so far , i have not been able to find out a way through which i can update a single attribute(for all features) in a shape-file through java . The geoTools library helps me to read a shape-file but i could not find a way to modify an attribute using this library .
How do i go about this?Please help me with the following questions:
- Is geoserver a correct choice for my use case?
- Is there some way to update an attribute of a shape-file using java.?
- Should i continue using a shape-file or move to POSTGIS?
- Can we update attributes of features in POSTGIS using java.?