https://issues.qgis.org/https://issues.qgis.org/favicon.ico2017-10-16T19:46:01ZQGIS Issue TrackingQGIS Application - Bug report #17290: field calculator: extract Z coord does not workhttps://issues.qgis.org/issues/17290?journal_id=835722017-10-16T19:46:01Zsalvatore fiandaca
<ul></ul><p>salvatore fiandaca wrote:</p>
<blockquote>
<p>field calculator: extract Z coord does not work</p>
<p>given a 3D shapefile, the field calculator does not extract the Z coord.<br />used expression: z ($ geometry)</p>
<p>tests performed on OSGeo4W, does not work on: 2.14.19, 2.18.13 and 2.99 (ae4d26a675)<br />machine win 10 64 bit</p>
</blockquote>
<p>geometry is lineStringZ</p> QGIS Application - Bug report #17290: field calculator: extract Z coord does not workhttps://issues.qgis.org/issues/17290?journal_id=835752017-10-16T20:01:29Zsalvatore fiandaca
<ul></ul><p>from other tests, it is known that to extract the coordZ just do z (point_n ($ geometry, 1))<br />the question remains whether it is a bug or not</p> QGIS Application - Bug report #17290: field calculator: extract Z coord does not workhttps://issues.qgis.org/issues/17290?journal_id=835762017-10-16T23:06:48ZNyall Dawson
<ul></ul><p>What z value would you expect it to give for a linestring? I'd say current behavior is correct, OR returning an array of all z values for the nodes in the line.</p> QGIS Application - Bug report #17290: field calculator: extract Z coord does not workhttps://issues.qgis.org/issues/17290?journal_id=835892017-10-17T07:04:12ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul> QGIS Application - Bug report #17290: field calculator: extract Z coord does not workhttps://issues.qgis.org/issues/17290?journal_id=836042017-10-17T07:46:54Zsalvatore fiandaca
<ul></ul><p>Nyall Dawson wrote:</p>
<blockquote>
<p>What z value would you expect it to give for a linestring? I'd say current behavior is correct, OR returning an array of all z values for the nodes in the line.</p>
</blockquote>
<p>for an isoipse i would expect the z value that is equal for all nodes.<br />But I realized that it would only be a special case with Z = constant<br />thank you</p> QGIS Application - Bug report #17290: field calculator: extract Z coord does not workhttps://issues.qgis.org/issues/17290?journal_id=836062017-10-17T07:58:51ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>salvatore fiandaca wrote:</p>
<blockquote>
<p>Nyall Dawson wrote:</p>
<blockquote>
<p>What z value would you expect it to give for a linestring? I'd say current behavior is correct, OR returning an array of all z values for the nodes in the line.</p>
</blockquote>
<p>for an isoipse i would expect the z value that is equal for all nodes.<br />But I realized that it would only be a special case with Z = constant<br />thank you</p>
</blockquote>
<p>I suggest to close this ticket (behavior correct) or add a feature request (array with all the values of the nodes).</p> QGIS Application - Bug report #17290: field calculator: extract Z coord does not workhttps://issues.qgis.org/issues/17290?journal_id=836072017-10-17T08:05:42Zsalvatore fiandaca
<ul></ul><p>Giovanni Manghi wrote:</p>
<blockquote>
<p>salvatore fiandaca wrote:</p>
<blockquote>
<p>Nyall Dawson wrote:</p>
<blockquote>
<p>What z value would you expect it to give for a linestring? I'd say current behavior is correct, OR returning an array of all z values for the nodes in the line.</p>
</blockquote>
<p>for an isoipse i would expect the z value that is equal for all nodes.<br />But I realized that it would only be a special case with Z = constant<br />thank you</p>
</blockquote>
<p>I suggest to close this ticket (behavior correct) or add a feature request (array with all the values of the nodes).</p>
</blockquote>
<p>yes, close as well.<br />thank you</p> QGIS Application - Bug report #17290: field calculator: extract Z coord does not workhttps://issues.qgis.org/issues/17290?journal_id=836122017-10-17T09:06:44ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Resolution</strong> set to <i>invalid</i></li><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul>