Hi Mike, thank you for the tests, it would be really helpful if you could share the endpoints of the failing tests (i.e. empty 3D layer, 3D layer with geometry-less first feature etc.).
I'm happy to have a look. Kind regards. On Mon, Aug 4, 2025 at 8:43 AM Mike Bundock <m...@augview.net> wrote: > Hi > It appears that: > QGIS 3.34.14-Prizen version was working correctly with WFS 3D geometries > (at least the LinestringZ and MultiLinestringZ that i tested) > QGIS 3.40.4 does not recognise the z values of MultiLinestringZ. It may > be finding the first record and seeing Z values are 0, then dropping the Z > altogether. > QGIS 3.99.0 Master (nightly build) now correctly sees the geometry types > *ONLY > IF* the first record has a geometry. > I suspect that if the table is empty or the first feature does not have a > geometry, the geometry type will be skipped - oops! > I needed to use the new option 'Force Initial GetFeature' > [image: image.png] > [image: image.png] > > regards > > *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.bund...@augview.net <mike.bund...@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 > > > On Fri, 1 Aug 2025 at 21:30, Alessandro Pasotti <apaso...@gmail.com> > wrote: > >> 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@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.bund...@augview.net <mike.bund...@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@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 >> > -- Alessandro Pasotti QCooperative: www.qcooperative.net ItOpen: www.itopen.it
_______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user