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
26 lines
956 B
Plaintext
26 lines
956 B
Plaintext
*****
|
|
Content-Type: text/xml; charset=utf-8
|
|
|
|
<GetFeatureInfoResponse>
|
|
<Layer name="layer0">
|
|
<Feature id="1">
|
|
<Attribute value="1" name="id"/>
|
|
<Attribute value="one" name="name"/>
|
|
<Attribute value="First Value" name="utf8nameè"/>
|
|
<BoundingBox maxy="5606025.2373" maxx="913209.0358" miny="5606025.2373" CRS="EPSG:3857" minx="913209.0358"/>
|
|
</Feature>
|
|
<Feature id="2">
|
|
<Attribute value="2" name="id"/>
|
|
<Attribute value="two" name="name"/>
|
|
<Attribute value="Second Value" name="utf8nameè"/>
|
|
<BoundingBox maxy="5606017.8743" maxx="913214.6741" miny="5606017.8743" CRS="EPSG:3857" minx="913214.6741"/>
|
|
</Feature>
|
|
<Feature id="3">
|
|
<Attribute value="3" name="id"/>
|
|
<Attribute value="three" name="name"/>
|
|
<Attribute value="Third èé↓" name="utf8nameè"/>
|
|
<BoundingBox maxy="5606011.4565" maxx="913204.9128" miny="5606011.4565" CRS="EPSG:3857" minx="913204.9128"/>
|
|
</Feature>
|
|
</Layer>
|
|
</GetFeatureInfoResponse>
|