QGIS server and the the WFS provider do not have the same behavior
regarding "ESPG:4326" and axis inversion for WFS 1.1.
QGIS server follows Geoserver convention and does not invert the
coordinates with EPSG:4326. However, the WFS provider inverts the
coordinates in that case.
Based on earlier discussions, there is no clear consensus what the
expected behavior is. However, QGIS server would be better using URNs
for WFS 1.1. this would remove this ambiguity.
With this change, the WFS 1.1 requests from QGIS server now expose
URNs by default. There is no change in the 1.0 case.
The unit tests are updated to reflect this change.
Related: https://github.com/qgis/QGIS/pull/57357
The goals are:
* To have better result in the GetCapabilities URL without having to fill it in the Project configuration
* Be able to be set by an integrator with environment variable or by providing headers from a proxy
The server resolution will use the following order:
- Value defined in the project per service.
- The ``<service>_SERVICE_URL`` environment variable.
- The ``SERVICE_URL`` environment variable.
- The custom ``X-Qgis-<service>-Servcie-Url`` header.
- The custom ``X-Qgis-Service-Url`` header.
- Build form the standard ``Forwarded`` header.
- Build form the pseudo standard ``X-Forwarded-Host`` and ``X-Forwarded-Proto`` headers.
- Build form the standard ``Host`` header and the server protocol.
- Build form the server name and the server protocol.