I am trying to update the raster statistics of a geotiff coverage using the
REST API (as the statistics are not automatically filled by Geoserver
AFAIK).
I get the .json description of the coverage [1], update the statistics
values on it and send back the updated json [2] to Geoserver using a PUT
request (to URL
http://localhost:8080/geoserver/rest/workspaces/cesar/coveragestores/tmp_media_stats24/coverages/tmp_media_stats24.json
).
However, I only get a HTTP 500 error code:
---- Debugging information ----
cause-exception : java.lang.RuntimeException
cause-message : null
class : org.geotools.coverage.grid.GridGeometry2D
required-type : org.geotools.coverage.grid.GridGeometry2D
converter-type :
org.geoserver.config.util.XStreamPersister$GridGeometry2DConverter
line number : -1
class[1] : org.geoserver.catalog.impl.CoverageInfoImpl
converter-type[1] :
org.geoserver.config.util.XStreamPersister$CoverageInfoConverter
version : 2.8.1
-------------------------------
I've seen a similar problem on mailing lists [3] and tried the @class
workaround with no success (the error message looks different anyway).
Any idea?
Thanks in advance,
César Martínez
[1] http://pastebin.com/LswcWPAG
[2] http://pastebin.com/Bf6Zm08e
[3]
http://osgeo-org.1560.x6.nabble.com/CoverageDimensionInfo-and-REST-requests-td5196556.html
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
César Martínez Izquierdo
GIS developer
- - - - - - - - - - - - - - - - - - - -
Blog: http://geotechnotes.wordpress.com/
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users