Bug report #14277
QGIS WFS server should not make geom response mandatory
|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|
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.
#1 Updated by Jukka Rahkonen over 4 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?
#4 Updated by Giovanni Manghi over 1 year ago
- Resolution set to end of life
- Status changed from Open to Closed
End of life notice: QGIS 2.18 LTR