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

Add other formats than text/plain to QGIS WMS GetFeatureInfo requests #23839

Closed
qgib opened this issue Dec 1, 2016 · 5 comments
Closed

Add other formats than text/plain to QGIS WMS GetFeatureInfo requests #23839

qgib opened this issue Dec 1, 2016 · 5 comments
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request

Comments

@qgib
Copy link
Contributor

qgib commented Dec 1, 2016

Author Name: Fabian Thalemann (Fabian Thalemann)
Original Redmine Issue: 15922

Redmine category:web_services_clients/wms


Hello all,
I'm facing the same problem as the original poster of an old ticket from 2012 (#15340): QGIS still does not support GetFeatureInfo requests in any other format than text/plain. This is known and even highlighted in the most recent QGIS documentation (http://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/ogc_client_support.html#ogc-wms): "Identity Formats — The list of MIME-types the server can respond with when you use the Identify tool. Currently, QGIS supports the text-plain type."
This situation is very unfortunate: I would like to make use of several WMS right now which have text/xml as the only allowed request format. What aperi2007 wrote in the mentioned old ticket ("A server wms always add the text/plain as available format type. So is impossible to have a server wms with only the text/xml.") is apparently wrong.
I have contacted the persons who run the WMS of interest to ask them if they could be so kind to change their server configuration, but they are rather pointing back at the software I'm using. So if anyone is able to add a wider range of GetFeatureInfo request formats to the QGIS desktop software I would be very thankful!

Best regards

Fabian

@qgib
Copy link
Contributor Author

qgib commented Jan 19, 2017

Author Name: Jürgen Fischer (@jef-n)


QGIS server also does "text/xml", "application/vnd.ogc.gml" and "text/html" (see https://github.com/qgis/QGIS/blob/release-2_18/src/server/qgshttprequesthandler.cpp#L332)

@qgib
Copy link
Contributor Author

qgib commented Jan 19, 2017

Author Name: Jürgen Fischer (@jef-n)


Sorry, this is about the client - that also support more than "text/plain". The note in the section "Using the Identify Tool" starts with selecting a format - gml does even highlight the selected feature.

@qgib
Copy link
Contributor Author

qgib commented Jan 19, 2017

Author Name: Fabian Thalemann (Fabian Thalemann)


Jürgen Fischer wrote:

Sorry, this is about the client - that also support more than "text/plain". The note in the section "Using the Identify Tool" starts with selecting a format - gml does even highlight the selected feature.

Hey Jürgen, thanks for replying. So you are saying that the latest QGIS Desktop client should be able to make WMS requests in other formats than text/plain? Can you provide a link to the code?
I tried with this WMS (http://tds.webservice-energy.org/thredds/wms/waves/wave_power_maps.nc?version=1.3.0&) which apparently allows text/xml format only, and all I can say is that the Identify Tool in the QGIS Desktop client is greyed out when I add and select any layer from this WMS.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib qgib added Feature Request Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
@alexbruy
Copy link
Contributor

As Jürgen already said, QGIS does support various formats for identify if server advertises them. Please reopen if still valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Provider Related to specific vector, raster or mesh data providers Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants