[QGIS-Developer] QGIS Server: proposal for small change in GetFeatureInfo response

Andreas Neumann a.neumann at carto.net
Thu Oct 5 06:04:02 PDT 2017


Hi QGIS Server devs and users, 

I have a small proposal for a change in the QGIS Server GetFeatureInfo
reponse. 

Next to the attributes that are returned for a feature, there are two
additional results: 

 	* geometry (optional, used for high-lighting in Web-GIS clients)
 	* maptip (usually the display value for the maptip in QGIS desktop or
a combination of several attributes), used by Web-GIS clients if they
want to display the most relevant information on mouse-over

The problem with these two additional result attributes, is that while
they are useful in a Web-GIS client context, both attributes are visible
in the GetFeatureInfo response of a Desktop GIS as well, such as QGIS
desktop. On these desktop GIS clients, the display of those two
attributes are unnecessary or even annoying. 

Now, my proposal is to hide these two attributes by default, unless a
client explicitly requests them. We could introduce a new
vendor-specific parameter, like WITH_GEOMETRY and WITH_MAPTIP or
something similar. 

What do you think? It would require small changes in QWC II, Lizmap or
other specific web clients who specifically use QGIS server extensions. 

Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171005/368ad69d/attachment.html>


More information about the QGIS-Developer mailing list