mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Some providers always retrieve geometry even if the NoGeometry flags is used in request. So in WMS GetFeatureInfo the bounding box even if it as not been configured. The `WIT_GEOMETRY` parameter has been introduced to force getting the geometry. The project can contain a parameter to add wkt geometry in the WMS GetFeatureInfo response: `wmsFeatureInfoAddWktGeometry` To provide something more homogeneous: * The wkt geometry is only provided if the project has been configured to provide wkt geometry and the request contains WITH_GEOMETRY. * The bounding box is provided if the project has been configured to provide wkt geometry * The bounding box is not provided if the project has not been configured to provide wkt geometry
14 lines
387 B
Plaintext
14 lines
387 B
Plaintext
*****
|
|
Content-Type: text/xml; charset=utf-8
|
|
|
|
<GetFeatureInfoResponse>
|
|
<Layer name="layer0">
|
|
<Feature id="2">
|
|
<Attribute value="3" name="id"/>
|
|
<Attribute value="three" name="name"/>
|
|
<Attribute value="three èé↓" name="utf8nameè"/>
|
|
<BoundingBox maxy="44.9014" maxx="8.2035" miny="44.9014" CRS="EPSG:4326" minx="8.2035"/>
|
|
</Feature>
|
|
</Layer>
|
|
</GetFeatureInfoResponse>
|