0

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):

enter image description here

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?

Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Oct 7, 2022 at 8:29

1 Answer 1

0

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!

Vince
20.5k16 gold badges49 silver badges65 bronze badges
answered Jul 13, 2023 at 16:06
2
  • 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. Commented Jul 13, 2023 at 16:12
  • 1
    Did you fix the docs, or just leave it for someone else? Commented Jun 5, 2024 at 15:01

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.