mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
* add expressions for min and max M and Z - including tests * add my info to contributors.json * Apply suggestions from code review suggestions to help for expressions from Nyall Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com> * Apply suggestions from code review add suggestions to qgsexpressionfunction.cpp from Nyall Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com> * [feature][expressions] - fix expressions Z/M min and max * [feature][expressions] - fix styling Z/M min and max expressions Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
10 lines
410 B
Plaintext
10 lines
410 B
Plaintext
{
|
|
"name": "z_min",
|
|
"type": "function",
|
|
"description": "Returns the minimum z coordinate of a geometry.",
|
|
"arguments": [ {"arg":"geometry","description":"a geometry with z coordinate"}],
|
|
"examples": [ { "expression":"z_min( geom_from_wkt( 'POINT ( 0 0 1 )' ) )", "returns":"1"},
|
|
{ "expression":"z_min( make_line( make_point( 0,0,0 ), make_point( -1,-1,-2 ) ) )", "returns":"-2"}
|
|
]
|
|
}
|