[Qgis-user] QGIS WFS 3D vector layer treated as 2D

Alessandro Pasotti apasotti at gmail.com
Fri Aug 1 02:29:59 PDT 2025


Hi,

I have fixed this recently: https://github.com/qgis/QGIS/pull/62449

Can you try with a nightly build of QGIS and file a bug report if the issue
persists?



On Thu, Jul 31, 2025 at 10:34 AM Mike Bundock via QGIS-User <
qgis-user at lists.osgeo.org> wrote:

> Hi
> a 3D vector WFS layer with geometry type MultiLineStringZ, published by
> GeoServer is seen as 2D in QGIS but is published correctly as 3D.
>
> QGIS Version 3.40.4-Bratislava
> QGIS reports the geometry type for geometry field geom3d as Geometry Line
> (MultiLineString)
> Identify Results shows no Z values for the geometry:
> [image: image.png]
>
> *The source data* is in PostGIS and is 3D - an example is:
> [image: image.png]
> *WFS queries to the data source show the geometry is 3D* in the geoserver
> WFS response:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *<?xml version="1.0" encoding="UTF-8"?><wfs:FeatureCollection
> xmlns:xs="http://www.w3.org/2001/XMLSchema
> <http://www.w3.org/2001/XMLSchema>"
> xmlns:wfs="http://www.opengis.net/wfs/2.0 <http://www.opengis.net/wfs/2.0>"
> xmlns:testns="https://augview.net/testns <https://augview.net/testns>"
> xmlns:gml="http://www.opengis.net/gml/3.2 <http://www.opengis.net/gml/3.2>"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> <http://www.w3.org/2001/XMLSchema-instance>" numberMatched="1"
> numberReturned="1" timeStamp="2025-07-31T08:25:23.092Z"
> xsi:schemaLocation="http://www.opengis.net/wfs/2.0
> <http://www.opengis.net/wfs/2.0>
> https://registration.augview.net/geoserver/schemas/wfs/2.0/wfs.xsd
> <https://registration.augview.net/geoserver/schemas/wfs/2.0/wfs.xsd>
> https://augview.net/testns <https://augview.net/testns>
> https://registration.augview.net/geoserver/testns/wfs?service=WFS&version=2.0.0&request=DescribeFeatureType&typeName=testns%3AWater_Pipe_Local
> <https://registration.augview.net/geoserver/testns/wfs?service=WFS&version=2.0.0&request=DescribeFeatureType&typeName=testns%3AWater_Pipe_Local>
> http://www.opengis.net/gml/3.2 <http://www.opengis.net/gml/3.2>
> https://registration.augview.net/geoserver/schemas/gml/3.2.1/gml.xsd
> <https://registration.augview.net/geoserver/schemas/gml/3.2.1/gml.xsd>">
> <wfs:member>        <testns:Water_Pipe_Local
> gml:id="Water_Pipe_Local.726022">            <testns:id>726022</testns:id>
>           <testns:subtype>1</testns:subtype>            <testns:geom3d>
>             <gml:MultiCurve srsName="urn:ogc:def:crs:EPSG::2193"
> srsDimension="3" gml:id="Water_Pipe_Local.726022.geom3d">
>   <gml:curveMember>                        <gml:LineString
> gml:id="Water_Pipe_Local.726022.geom3d.1">
> <gml:posList>5936450.85824186 1754007.66665035 100.6 5936452.36323351
> 1754005.52882205 101.4 5936455.4422984 1754005.56829724
> 101.7</gml:posList>                        </gml:LineString>
>     </gml:curveMember>                </gml:MultiCurve>
> </testns:geom3d>        </testns:Water_Pipe_Local>
> </wfs:member></wfs:FeatureCollection>*
>
> Is there something I am not doing correctly when connecting to the data
> via WFS?
>
> regards
>
> Mike
>
> *Mike Bundock*  |  CEO
>
> Augview |  P O Box 125046, St Heliers, Auckland 1740, New Zealand
>
> p: +64 9 575 5298 | m: +64 27 575 5298 | e:
> mailto:mike.bundock at augview.net <mike.bundock at augview.net>| w:
> www.augview.net
>
>
>
> Winner of Innovation & Commercialisation and Supreme Awards at 2014 NZ
> Spatial Excellence Awards
>
> Winner of Innovation & Commercialisation Award at 2014 Asia Pacific
> Spatial Excellence Awards
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250801/97d68620/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 17296 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250801/97d68620/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 35354 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250801/97d68620/attachment-0003.png>


More information about the QGIS-User mailing list