Server LTR: OAPIF/WFS3 describe collections malfunction - empty pg layer with UTM zone SRID #60686
Open
2 tasks done
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
What is the bug or the crash?
OAPIF/WFS3 Service can't handle properly empty PostGIS layers with "UTM-SRID-based" geometries
Steps to reproduce the issue
Reproduction which may serve as test sequence:
Create an empty project
Add a PostgreSQL vector layer having no features. Here I'm using a table which has EPSG:25829 Points
Screenshot - layer datasource info
Enable QGIS Server capabilitites and publish layer at QGIS Server settings
Hit WMS/GetProjectSettings and WFS/GetCapabilities to ensure our server config works
Hit WFS3/OAPIF describe Collections endpoint → results on 500 Internal Server Error
At server logs whe can see
Error: Point outside of projection domain
:Workaround:
Remove the layer from the project
Transform the original layer to EPSG:4326. Here I'm using a simple view - i.e:
Add the new layer to the project, and publish it through QGIS Server settings
Screenshot - layer datasource info
Hit again de
/wfs3/collections.json
endpoint → Observe it works as expectedVersions
Supported QGIS version
New profile
Additional context
May be related to #45073
I also tried to work-around setting up the
qgis_layer_metadata
table extent to ensure it is within the UTM zone extent, but did not work either.The text was updated successfully, but these errors were encountered: