使用Geoserver REST API上传tiff影像的时候,http request put一直没有返回值,上传失败。
通过对比https://github.com/gicait/geoserver-rest仓库的代码,发现request头的content-type必须小写"image/geotiff",也可以写成"image/tiff",不可以写成"geotiff"(前面的"image/"必须加上
http://127.0.0.1:8080/geoserver/rest/workspaces/RERSSIL/coveragestores/24287496921681920123/file.geotiff
url末尾必须只能是.geotiff(小写)
参考:
https://docs.geoserver.org/latest/en/api/#1.0.0/coveragestores.yaml