转自https://www.cnblogs.com/wang985850293/p/5880971.html
geoserver使用curl发布 imagemosaic
curl -v -u admin:geoserver -XPUT -H "Content-type: text/plain" -d "file:/data/mosaic" "http://localhost:8080/geoserver/rest/workspaces/toby/coveragestores/S2Output/external.imagemosaic"
--------------------如果要发布imagepyramid,
gdal_retile.py -v -r bilinear -levels 4 -ps 2048 2048 -co "TILED=YES" -co "COMPRESS=JPEG" -targetDir bmpyramid bmreduced.tiff
3、
curl -v -u admin:geoserver -XPUT -H "Content-type: text/plain" -d "file:/data/bmpyramid
" " http://localhost:8090/geoserver/rest/workspaces/toby/coveragestores/poly-incremental/external.imagepyramid"
curl -v -u admin:geoserver -XPUT -H "Content-type: text/plain" -d "file:/data/mosaic" "http://localhost:8080/geoserver/rest/workspaces/toby/coveragestores/S2Output/external.imagemosaic"
--------------------如果要发布imagepyramid,
gdal_retile.py -v -r bilinear -levels 4 -ps 2048 2048 -co "TILED=YES" -co "COMPRESS=JPEG" -targetDir bmpyramid bmreduced.tiff
3、
curl -v -u admin:geoserver -XPUT -H "Content-type: text/plain" -d "file:/data/bmpyramid
" " http://localhost:8090/geoserver/rest/workspaces/toby/coveragestores/poly-incremental/external.imagepyramid"