I have created a ECW coverage store and a coverage using the GeoServer REST API. Initial I used the srs bounds for the coverage and the preview shows this (what I expected):
Now I want to update (PUT) the coverage and calculate the nativebbox & latlonbbox with this path/query:
https:// ... /geoserver/rest/workspaces/org1/coveragestores/Meerssen/coverages/meerssen_ecw?calculate=nativebbox,latlonbbox
Tested in Postman with no body (Content-Length=0 & no Content-Type), gives a 415 response code.
Why do I get the 415 Unsupported Media Type response? Do I need to supply a body or Content-Type?
1 Answer 1
GeoServer documentation is broken (I had the same error).
I sent a PUT request to https:// ... /geoserver/rest/workspaces/{workspacesName}/coveragestores/{storeName}/coverages/{coverageName}
with body:
{
"coverage": {
"srs": "EPSG:4326"
}
}
And a miracle happened !!! Coverage successfully updated!
-
As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.2023年07月13日 16:12:22 +00:00Commented Jul 13, 2023 at 16:12
-
1Did you fix the docs, or just leave it for someone else?Ian Turton– Ian Turton2024年06月05日 15:01:44 +00:00Commented Jun 5, 2024 at 15:01