-
Notifications
You must be signed in to change notification settings - Fork 409
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
#9031 GetMap format list in GetCapabilities not respected #9054
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General thing looks good, I love we are removing ogc-schemas one piece at time ❤️
I asked for some fixes and doc/naming improvements. See my comments inline and contact me if something is unclear.
@@ -1483,7 +1483,8 @@ | |||
}, | |||
"format": { | |||
"noOption": "Nessuna opzione", | |||
"loading": "Caricamento in corso..." | |||
"loading": "Caricamento in corso...", | |||
"refresh": "Recupera il formato supportato" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be plural also on the other translations.
"refresh": "Recupera il formato supportato" | |
"refresh": "Recupera i formati supportati" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please fix the translations
The rest is ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As exchanged in our call I would like to remove the support for supportedGetMapFormats (the name can be also misunderstood) in favor of a fixed list of a well known and tested formats if we cannot find a reliable heuristic that automatically interpret it from the wms getcapa and generate that list. I wouldn't like to stratify config properties like this in favor of a more linear behavior: if we will need to include a new format we will provide a new PR to update the list of explicitly supported ones.
I'm a bit lost.. supportedGetMapFormats allowed one to 'override' the hardcoded list of formats supported by mapstore ? The newly hardcoded list after ea42e62 is a bit short.. in my opinion it should be whatever formats the browser is able to display, no ? or only the list of formats supported by OL/leaflet/cesium ? Should that only be 'official' mimetypes ? what about I've tested fetching available formats from https://tiles.craig.fr/ortho/service correctly only lists will test with more services from https://geoservices.ign.fr/services-web-essentiels & https://geoservices.ign.fr/services-web-experts and others we might use. |
https://wxs-gpu.mongeoportail.ign.fr/externe/vkd1evhid6jdj5h4hkhyzjto/wms/v?service=WMS&version=1.3.0&request=GetCapabilities provides a large list, from which https://wxs.ign.fr/administratif/geoportail/r/wms?service=WMS&version=1.3.0&request=GetCapabilities provides:
from this list, ms2 only displays jpeg & png. So, tiff and geotiff are somewhat popular ? are those supported by OL ? Will do more tests tmrw, including GFI formats (eg #9007 / georchestra/mapstore2-georchestra#302) |
for GFI formats testing, first some tests with mapserver:
this bit is another issue ?
some tests with mapproxy:
some tests with IGN national services:
either FORMAT is mandatory in the protocol and should be the same value as INFO_FORMAT, or IGN service is too picky/broken. and a last test with the GPU national service:
I hope this testing covers as much cases as possible. To me there are two issues to worry about:
|
trying to understand more the template issue, i'm still seeing the STR:
Some error handling missing in https://github.com/geosolutions-it/MapStore2/blob/master/web/client/components/data/identify/viewers/TemplateViewer.jsx#L18 (or somewhere else in the call stack) for that particular case, but other than that the template format seems to work fine when |
@landryb We removed the proposed implementation of
We tested tiff, tiff8, geotiff and geotiff8 from a GeoServer but they are not rendered by the browser and OL. The map library is using the Image class that is equivalent to the
|
@landryb About this two comments #9054 (comment) #9054 (comment) . This PR focus mainly on the Get Map request and it does not change the behavior of the Get Feature Info even if there is an improvement in the parsing. Issues related to the Get Feature Info needs to be added to this other issue #9007. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @allyoucanmap and @offtherailz for the review.
@landryb, according to #9054 (comment) if you have further testable formats to add to the list, just let us know and we will raise a new PR for them.
@allyoucanmap, I think the only things that are still missing are:
- Provide a comment in GetFeatureInfo format list in GetCapabilities not respected #9007 with further indications for @landryb
- Provide all missing backports
@ElenaGallo please test this in DEV following indications provided by @allyoucanmap in PR description. Connected issues are two. No backport needed for this since it is for 2023.02.00 |
sorry, that server isnt public.
Right, then it makes sense to not add them. Thanks for the explanation. |
@allyoucanmap Once the layer is saved, the format of the layer is no longer visible in the level settings. metadata.save.error.mov |
Description
This PR includes following improvements:
For Testers
we need to cover functional test for following components
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
#9031
#8906
What is the new behavior?
The format for the WMS layer are extracted directly from the capabilities even if the advanced setting are not changed, in addition the filtering of the supported format types has been improved to allow only the supported ones listed in the capabilities
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information