|
From: César M. I. <ces...@gm...> - 2016-01-28 08:59:07
|
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) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |