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
16 lines
535 B
Plaintext
16 lines
535 B
Plaintext
Content-Length: 366
|
|
Content-Type: text/xml; charset=utf-8
|
|
|
|
<GetFeatureInfoResponse>
|
|
<Layer name="testlayer_thousands">
|
|
<Feature id="2">
|
|
<Attribute value="3" name="id"/>
|
|
<Attribute value="three" name="name"/>
|
|
<Attribute value="three èé↓" name="utf8nameè"/>
|
|
<Attribute value="123456" name="long_int"/>
|
|
<Attribute value="123456.8900" name="long_float"/>
|
|
<BoundingBox maxy="5606011.4565" maxx="913204.9128" miny="5606011.4565" CRS="EPSG:3857" minx="913204.9128"/>
|
|
</Feature>
|
|
</Layer>
|
|
</GetFeatureInfoResponse>
|