Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetMap format list in GetCapabilities not respected #9031

Closed
1 task done
Tracked by #8167
tdipisa opened this issue Mar 16, 2023 · 0 comments · Fixed by #9054 or #9070
Closed
1 task done
Tracked by #8167

GetMap format list in GetCapabilities not respected #9031

tdipisa opened this issue Mar 16, 2023 · 0 comments · Fixed by #9054 or #9070

Comments

@tdipisa
Copy link
Member

tdipisa commented Mar 16, 2023

Description

From georchestra/mapstore2-georchestra#301

whatever the server says in the getcapabilities, it seems mapstore hardcodes the image format list in several places:

i know (from the doc in https://github.com/geosolutions-it/MapStore2/blob/master/docs/user-guide/catalog.md#advanced-settings-1) that one can configure that per catalog service (well, in the UI one can only remove some formats from the 'default list', but i guess in the .js its configurable more finely), and i guess this hardcoded list comes from the default formats supported by geoserver (which mapstore2 is developed/tested against, other servers being less tested..) but could we at least prune the list from the formats not listed in the servers' GetCapabilities ?

for example mapserver has this:

<GetMap>
<Format>image/png</Format>
<Format>image/jpeg</Format>
<Format>image/png; mode=8bit</Format>
<Format>image/vnd.jpeg-png</Format>
<Format>image/vnd.jpeg-png8</Format>
<Format>application/x-pdf</Format>
<Format>image/svg+xml</Format>
<Format>image/tiff</Format>
<Format>application/vnd.google-earth.kml+xml</Format>
<Format>application/vnd.google-earth.kmz</Format>
<Format>application/x-protobuf</Format>
<Format>application/json</Format>

so in the mapstore UI if one selects image/gif or image/png8 the layer breaks.

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Other useful information

This other issue should be included

Tasks

Preview Give feedback
  1. Accepted C276-CRAIG-2023-DEV bug
    ElenaGallo allyoucanmap
@tdipisa tdipisa added this to the 2023.01.01 milestone Mar 16, 2023
@tdipisa tdipisa modified the milestones: 2023.01.01, 2023.02.00 Mar 21, 2023
allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this issue Mar 24, 2023
@allyoucanmap allyoucanmap linked a pull request Mar 24, 2023 that will close this issue
5 tasks
@ElenaGallo ElenaGallo self-assigned this Mar 29, 2023
allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this issue Apr 4, 2023
@allyoucanmap allyoucanmap linked a pull request Apr 4, 2023 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment