I am looking for a way to automatically update keywords. I started writing php scripts to implement the curl commands given in the online user manual.
Then I saw a recent exchange on geoserver-users about java/org/geoserver/rest/client library.
I would much rather do my updates with java than php.
However, in looking at this particular class,
http://svn.codehaus.org/geoserver/trunk/src/community/restconfig-java/src/main/java/org/geoserver/rest/client/datatypes/FeatureType.java
I don't see the keywords. Is there some reason keywords are not properties of this class, or did it just get overlooked? I could trying adding this functionality to the class if this seems like a reasonable thing to do. (I am not an advanced java programmer, but am willing to give it a try.)
--
Tara Athan
Owner, Athan Ecological Reconciliation Services
tara_athan at alt2is.com
707-272-2115 (cell, preferred)
707-485-1198 (office)
249 W. Gobbi St. #A
Ukiah, CA 95482
On 04/08/2010 10:43 PM, Tara Athan wrote:
I am looking for a way to automatically update keywords. I started
writing php scripts to implement the curl commands given in the online
user manual.
Then I saw a recent exchange on geoserver-users about
java/org/geoserver/rest/client library.
I would much rather do my updates with java than php.
However, in looking at this particular class,
http://svn.codehaus.org/geoserver/trunk/src/community/restconfig-java/src/main/java/org/geoserver/rest/client/datatypes/FeatureType.java
I don't see the keywords. Is there some reason keywords are not
properties of this class, or did it just get overlooked? I could trying
adding this functionality to the class if this seems like a reasonable
thing to do. (I am not an advanced java programmer, but am willing to
give it a try.)
Keywords are (should be, anyway) associated with FeatureType, this is probably just an oversight on the part of the developer of that module. I can't speak for the maintainer of the Java RestConfig client, but I imagine a patch would be welcome. This is actually a bug, since if keywords are not included in rest requests they will be cleared on the server, meaning that any modifications made with this client will remove keywords from the affected featuretypes.
--
David Winslow
OpenGeo - http://opengeo.org/