Feature request #7719

add GML response to GetFeatureInfo in qgis mapserver

Added by Giovanni Manghi almost 4 years ago. Updated over 3 years ago.

Status:Closed Start Date:04/26/2013
Priority:Normal Due date:
Assigned to:Marco Hugentobler % Done:

100%

Category:Mapserver (QGIS Server)
Target version:Future Release - High Priority
Platform: Resolution:fixed
Platform version: Pull Request or Patch supplied:Yes
Status info: Tag:

Description

this would allow, among the other things, to use the new feature of the QGIS wms client that allows to copy/paste features from WMS servers.

Note: on (UMN) mapserver this is possible when at a layer level is added the "gml_geometries" parameter

Description: (Optional, applies only to GetFeatureInfo GML requests) Provides a name for geometry elements. The value is specified as a string to be used for geometry element names. By default, GML geometries are not written in GML GetFeatureInfo output, unless gml_geometries and gml_[geometry name]_type are both set. By default, only the bounding box is written. If gml_geometries is set to “none”, neither the bounding box nor the geometry are written.

History

Updated by Stéphane Brunner over 3 years ago

We also needs this feature than I start to work on it, but I see some design issue to implement it:

The method QgsWMSServer::getFeatureInfo fill a QDomDocument but I think that it should fill a QMap<QString, QList<QgsFeature>> or a QList<QgsFeature>, the first one has the advantage to separate the features per layer (QString => layer name).

The method QgsWMSServer::convertFeatureInfoToSIA2045 should be moved to QgsHttpRequestHandler.

Ad the methods QgsWFSServer::createFeatureGML2 and QgsWFSServer::createFeatureGML3 should probably be shared between WMS/WFS server but I don't know where to put them.

It never develop in the QGis core before than all input are welcome.

Sincerely
Stéphane Brunner / Camptocamp

Updated by Stéphane Brunner over 3 years ago

I just see that QgsHttpRequestHandler hasn't any dependencies on QGis components than I think that's almost content of the method QgsHttpRequestHandler::sendGetFeatureInfoResponse that should moved to QgsWMSServer::getFeatureInfo ...

Updated by Giovanni Manghi over 3 years ago

Stéphane Brunner wrote:

I just see that QgsHttpRequestHandler hasn't any dependencies on QGis components than I think that's almost content of the method QgsHttpRequestHandler::sendGetFeatureInfoResponse that should moved to QgsWMSServer::getFeatureInfo ...

hi,

better move this discussion in the developers mailing list.

Cheers!

Updated by René-Luc ReLuc over 3 years ago

  • Assigned to set to Marco Hugentobler
  • Target version changed from Future Release - Nice to have to Future Release - High Priority
  • % Done changed from 0 to 100
  • Pull Request or Patch supplied changed from No to Yes

Can be closed ?
since 040e9d54cb4a08a19ee47226ead6beee5888f4ce
https://github.com/qgis/Quantum-GIS/commit/040e9d54cb4a08a19ee47226ead6beee5888f4ce

Updated by Giovanni Manghi over 3 years ago

  • Status changed from Open to Closed
  • Resolution set to fixed

thanks!

Also available in: Atom