Hi list,
I am unsure whether the devel-list of geoserver is the right place to
ask my upcoming question. If it isn't; please guide me to the right list.
Is it right that there is currently no way of issuing a RESTful request
through geoserver-managers
(https://github.com/geosolutions-it/geoserver-manager) public methods to
recalculate a FeatureTypes native and projected BBOX?
Geoserver offers the interface (see e.g.
http://docs.geoserver.org/stable/en/user/rest/api/featuretypes.html#recalculate)
and it is working as expected through a curl call like e.g.
curl -i -H 'Content-type: text/xml' \
-d
'<featureType><name>myfeaturetype</name><enabled>true</enabled></featureType>'\
-X PUT \
http://user:passwd@url/to/geoserver/rest/workspaces/<ws>/datastores/<ds>featuretypes/myfeaturetype.xml?recalculate=nativebbox
But I could not find a Java equivalent in e.g.
https://github.com/geosolutions-it/geoserver-manager/blob/master/src/main/java/it/geosolutions/geoserver/rest/GeoServerRESTPublisher.java
that would allow to easily talk to this interface.
I have working code that enhances the GeoServerRESTPublisher to have
such method. Would you accept a pull request against the master with
sth. that looks like below:
public boolean recalculateFeatureTypeBbox(RESTFeatureType ft,
BboxRecalculationMode calculationMode) {
// implementation
}
where BboxRecalculationMode is a public enum of the allowed modes. If
you prefer different signatures, this can easily be changed.
I am looking forward to your suggestions!
Best regards,
Marc
PS: This email was also sent to the geotools dev list by accident...
sorry for the noise, M.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel