Feature request #7719
add GML response to GetFeatureInfo in qgis mapserver
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Marco Hugentobler | ||
Category: | QGIS Server | ||
Pull Request or Patch supplied: | Yes | Resolution: | fixed |
Easy fix?: | No | Copied to github as #: | 16628 |
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
#1 Updated by Stéphane Brunner about 11 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
#2 Updated by Stéphane Brunner about 11 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 ...
#3 Updated by Giovanni Manghi about 11 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!
#4 Updated by René-Luc ReLuc about 11 years ago
- Assignee set to Marco Hugentobler
- Target version changed from Future Release - Nice to have to Future Release - High Priority
- Pull Request or Patch supplied changed from No to Yes
- % Done changed from 0 to 100
Can be closed ?
since 040e9d54cb4a08a19ee47226ead6beee5888f4ce
040e9d54cb4a08a19ee47226ead6beee5888f4ce
#5 Updated by Giovanni Manghi about 11 years ago
- Resolution set to fixed
- Status changed from Open to Closed
thanks!