-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3D line length not shown in identify tool results #43930
Comments
I can't reproduce. What output format are you saving the draped layer to? |
Its does not matter. The screenshots show it for temporary layers, but it is the same result for permanent shapes and for geopackage layers. |
@coefficient1900 there is only the line, not de DEM. |
Again, I can't reproduce. You'll need to post additional details about how to trigger this bug. |
@gioman I downloaded the archive and it contains utmdem.tif (of course the dem) and four necessary files of a shapefile. |
I tested the procedure with the data from the archive on Ubuntu which never has seen QGIS before (with the version from the Ubuntu software center (3.10.4)). The result is similar to the described above. |
3dlengthscreen.mp4Here is screencast (sorry for the missing mouse) that shows the steps with the data form the .zip from above to provoke the behaviour. Let me know when you need something more. |
Hi @nyalldawson I can also reproduce the described issue with the layers in the provided zip file. The testline.shp layer is an ESRI Shapefile of type "Line (MultiLineString)" (from Layer Properties) with 1 feature. I see two kind of issue:
|
multilinestringz geometries Fixes qgis#43930
multilinestringz geometries Fixes #43930
multilinestringz geometries Fixes #43930
multilinestringz geometries Fixes #43930
@coefficient1900 the issue about the "Drape" processing algorithm, the "Identify feature" tool and the Z and Length 3D values has been fixed by #43940 Instead, the issue about the output layer of the GRASS v.drape algorithm, the Vertex tool and the Z values has not yet been fixed, so you need to file another issue report for this unfixed issue in order to let a developer fix it if possible. |
@agiudiceandrea is the GRASS "v.drape" issue one for the QGIS repo or is it a GRASS problem to solve in OSGeo/grass? |
@coefficient1900 "fun" fact: if saving as SHP when using v.drape the result is a proper 3d vector (MultiLineStringZ) and the vertex editor show the z values, but the identify tool do not show the 3D length. If saving as temporary layer or GPKG the resulting vector do not seems to be 3d (linestring), the vertex editor do not show the Z values but the identify tool shows the 3D length. |
@gioman the current situation in QGIS is that the GPKG format is always* used for the "Save to temporary file" GRASS algorithms output layer. * It seems that changing the "Default output vector layer extension" option, in the Processing options, doesn't affects the GRASS algorithms, while it affects the GDAL algorithms. Bug report submitted #43988 |
@agiudiceandrea yes, I always forget about it
yes I know
still is interesting that QGIS identify do not show the 3d length for what it is a real 3d vector and show it for what it seems to not be a 3d vector. |
The Identify Feature tool relies to each feature geometry type (and not to the layer type) in order to show or not the length 3D and Z values. In the first issue (in which the layer is "Line (MultiLineStringZ)"), the feature geometry type is "MultiLineStringZ" so QgsWkbTypes::hasZ() is True and QgsWkbTypes::flatType() is MultiLineString which was not supported by the Identify Feature tool (this is now fixed by #43940 and the Identify Feature tool will support MultiLineString too). In the second issue (in which the layer type is wrongly "Line (LineString)"), the feature geometry type is "LineString25D" so QgsWkbTypes::hasZ() is True and QgsWkbTypes::flatType() is LineString which is supported by the Identify Feature tool. |
I've filed a issue report OSGeo/grass#1693 in the OSGeo/grass repository. |
@agiudiceandrea thanks |
Describe the bug
A line layer that received the Z-values from the built-in "Drape" algorithm does not show the 3D length in the identify tool results. Using the "v.drape" from the GRASS toolbox to assign Z-values will result in a visible 3D length in the identifying section.
How to Reproduce
Create a new 2D line shape layer (I used CRS: 25832 ETRS89/UTM32N) where you have a DEM available.
The line won't show a 3D length which is the expected behaviour, because it does not have Z-values.
Use the "Drape" algorithm the assign Z-values to that specific line.
Z-Values are there, but a 3D length is not displayed yet.
If you use the "v.drape" from GRASS instead to assign the Z-Values to the line, the 3D length is shown in the identifying section, although the vertex section does not show the Z-values.
(Even when you edit the Z values of a line manually, you will not get the 3D length)
QGIS and OS versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Additional context
I am using two independent windows machines (same behaviour) and a new profile.
This behaviour occurred in the version 3.10.14, 3.16.8, 3.18.3 and 3.20.0.
The archive contains a dem and the origin line which was used to go through the steps described above.
demand2dline.zip
The text was updated successfully, but these errors were encountered: