Bug report #14277
QGIS WFS server should not make geom response mandatory
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | René-Luc ReLuc | ||
Category: | QGIS Server | ||
Affected QGIS version: | 2.8.3 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | end of life |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 22271 |
Description
If I request a specific non-spatial property in a WFS request and do not want the geometry, QGIS server nevertheless returns the geometry.
In my case I want to return dates so I can establish a range of available dates in order to construct WMS queries with date filters. My layers have huge numbers of records so by returning the geometry unnecessarily, the response kills my server and application.
I believe default behaviour should be that if you don't request any properties you get a full record including geometry but that if you do request specific properties then only those properties be returned.
History
#1 Updated by Jukka Rahkonen over 8 years ago
It depends on the schema. If geometry is "not null" in the schema the WFS server must send it even it was not requested. If geometry can be null and it is not included in the list of properties then it should not be returned. Use DescribeFeatureType and add the details into your ticket.
Have you considered to write first a question into QGIS users mailing list instead of making bug a report straight ahead?
#2 Updated by René-Luc ReLuc over 8 years ago
- Assignee set to René-Luc ReLuc
#3 Updated by Giovanni Manghi over 7 years ago
- Easy fix? set to No
- Regression? set to No
#4 Updated by Giovanni Manghi over 5 years ago
- Resolution set to end of life
- Status changed from Open to Closed
End of life notice: QGIS 2.18 LTR
Source:
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/