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 ‘myfeaturetypetrue’
-X PUT
http://user:passwd@anonymised.com/to/geoserver/rest/workspaces//datastores/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.
Mrac,
for GeoServer-Manager questions please use the following Mailing Lists:
USERS
[https://groups.google.com/forum/?fromgroups#!forum/geoserver-manager-users](https://groups.google.com/forum/?fromgroups#!forum/geoserver-manager-users)
DEVELOPERS
[https://groups.google.com/forum/?fromgroups#!forum/geoserver-manager-devs](https://groups.google.com/forum/?fromgroups#!forum/geoserver-manager-devs)
As specified into the wiki:
[https://github.com/geosolutions-it/geoserver-manager/wiki](https://github.com/geosolutions-it/geoserver-manager/wiki)
Cheers,
Carlo
···
2013/6/28 Marc Jansen <jansen@anonymised.com>
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 ‘myfeaturetypetrue’
-X PUT
http://user:passwd@anonymised.com/to/geoserver/rest/workspaces//datastores/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
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
–
Dott. Carlo Cancellieri
@cancellieric
Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it