Skip to main content
4 votes

QGIS identify tool is not aware of all available INFO_FORMAT parameters in the WMS GetFeatureInfo capabilities

Probably only the one who has coded the QGIS WMS provider can tell for sure but we may try to guess. The code is at https://github.com/qgis/QGIS/blob/06b5c5112726b9d29a35fdc5d4bb0e428cf25061/src/...
user30184's user avatar
  • 67k
4 votes

QGIS identify tool is not aware of all available INFO_FORMAT parameters in the WMS GetFeatureInfo capabilities

The WMS Provider qgswmscapabilities.cpp loops through the supported GetFeatureInfo formats and categorises them into "text", "html" and "feature" types. I think (but am ...
user2856's user avatar
  • 66.8k
2 votes
Accepted

How to get a WMS GetFeatureInfo response with MapServer in JSON format?

There is a working example of a raster layer with a GetFeatureInfo query returning GeoJSON at https://app.mapserverstudio.net/#fXO3XBRn No templates are required, just the OUTPUTFORMAT: ...
geographika's user avatar
  • 14.3k
2 votes

How to get a WMS GetFeatureInfo response with MapServer in JSON format?

Meanwhile you wrote your mail I managed to make the JSON output to work to some extent. In my mapfile I have now at level MAP-WEB-METADATA an entry "wms_feature_info_mime_type" "...
user30184's user avatar
  • 67k
2 votes

Pick data from WMS layer

A practical solution is, to create your own function in the Function Editor within the Field Calculator window. There you can use most of the functionality of the Identify-Tool (class ...
FrogJ's user avatar
  • 21
1 vote
Accepted

Uncaught TypeError: wmsLayers.getSource is not a function

wmsLayers is defined in your code as: const wmsLayers = [ {...}, {...}, {...}, ] It is an array (of dictionaries) and it does not have any functions. Therefore the code const url = ...
Son of a Beach's user avatar
1 vote
Accepted

OpenLayers add features to vectorLayer from GetFeatureInfo query in TypeScript

Alright, I found out the issue spotted on Github here. I'll do a typing workaround (like described in the issue) waiting for a bugfix release. If there is no better way to do so, I will accept my own ...
FloCAD's user avatar
  • 33
1 vote

Leaflet plugin Leaflet-WMS.js Gives sometimes weird x-y coodinates

I edited Leaflet-WMS plugin code. I changed the request parameter URL from requestParamaters[version >= 1.3 ? 'i' : 'x'] = point.x; requestParamaters[version >= 1.3 ? 'j' : 'y'] = point.y; to: ...
jules2703's user avatar
1 vote

How to get a WMS GetFeatureInfo response with MapServer in JSON format?

In the past I have used the following, but neither worked for me correctly, things may have changed in recent versions: # Neither GeoJSON outputs work as expected... (formatoptions issue related to ...
nmtoken's user avatar
  • 13.4k
1 vote
Accepted

Problem with GetFeatureInfo request on INSPIRE cadastre using Leaflet

In case anyone encounters this problem. For this service, Cadastro uses I, J instead of X, Y in queries.
paralosreg's user avatar
1 vote

Calculating distance between two point layers based on matching ID using QGIS

As commented by @J.Monticolo: Just replace PID0001 by the "PID" field value : length(shortest_line($geometry, geometry(get_feature('LandscapeAll', 'PID', "PID")))).
PolyGeo's user avatar
  • 65.2k

Only top scored, non community-wiki answers of a minimum length are eligible