[Qgis-user] null attributes in wfs response not returned anymore
Alessandro Pasotti
apasotti at gmail.com
Wed Apr 22 03:08:45 PDT 2026
Hi,
See:
https://github.com/qgis/QGIS/issues/45243
On Wed, Apr 22, 2026 at 11:40 AM Oliver Christen via QGIS-User
<qgis-user at lists.osgeo.org> wrote:
>
> 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
>
> --
>
> camptocamp
>
> 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/
>
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
--
Alessandro Pasotti
QCooperative: www.qcooperative.net
ItOpen: www.itopen.it
More information about the QGIS-User
mailing list