[Qgis-user] null attributes in wfs response not returned anymore

Oliver Christen oliver.christen at camptocamp.com
Wed Apr 22 02:40:04 PDT 2026


Dear all

I observed that at least until version 3.28 of Qgis server, wfs queries
return all attributes enabled, even when attribute values are null,
for example:

<qgs:railways fid="railways.2372">
  <gml:boundedBy>
   <gml:Box srsName="EPSG:2056">
    <gml:coordinates cs="," ts=" ">2496713.6,1120047
2496904.7,1120310</gml:coordinates>
   </gml:Box>
  </gml:boundedBy>
  <qgs:geometry>
   <LineString xmlns="http://www.opengis.net/gml" srsName="EPSG:2056">
    <coordinates xmlns="http://www.opengis.net/gml" cs="," ts="
">2496904.7,1120310 2496811.4,1120210.2 2496788.3,1120183.8
2496773.2,1120163.6 2496757.1,1120140 2496745.7,1120121.3
2496733.6,1120098.4 2496722.3,1120071.8 2496717.1,1120057.2
2496713.6,1120047</coordinates>
   </LineString>
  </qgs:geometry>
  <qgs:fid>2372</qgs:fid>
  <qgs:osm_id>27884774</qgs:osm_id>
  <qgs:name xsi:nil="true"/>
  <qgs:type>rail</qgs:type>
  <qgs:geom_4326></qgs:geom_4326>
 </qgs:railways>

Here we can see that "name" is returned, but is null.

But testing with version 3.34 and newer, null attribute are completely
absent from the wfs response,

I checked the visual changelog of Qgis between 3.28 and 3.24, but I
couldn't find any information about this behavior change.

Please can someone tell me what was changed in Qgis, and if this behavior
can be configured somehow ?

Thank you very much
best regards
Oliver

-- 

*camp**to**camp*

INNOVATIVE SOLUTIONS

BY OPEN SOURCE EXPERTS



Oliver Christen

Responsable support suisse-romande



+41 619 10 10 (central)
+41 619 10 23 (direct)

+41 76 780 44 12 (mobile)



Camptocamp SA

Route de la Chaux 4

1030 Bussigny

Suisse



https://www.camptocamp.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20260422/0d40cb4a/attachment.htm>


More information about the QGIS-User mailing list