Skip to content

Commit

Permalink
Trying to focus on the geometry function and expose it simply with mo…
Browse files Browse the repository at this point in the history
…re practical examples
  • Loading branch information
DelazJ authored and github-actions[bot] committed Nov 4, 2021
1 parent 07dbfe3 commit 8332f78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/function_help/json/geometry
Expand Up @@ -4,7 +4,8 @@
"groups": ["GeometryGroup"],
"description": "Returns a feature's geometry.",
"arguments": [ {"arg":"feature","description":"a feature object"}],
"examples": [ { "expression":"geom_to_wkt( geometry( get_feature( layer, attributeField, value ) ) )", "returns":"'POINT(6 50)'"},
{ "expression":"intersects( $geometry, geometry( get_feature( layer, attributeField, value ) ) )", "returns":"true"}
"examples": [ { "expression":" geometry( $currentfeature )", "returns":"the geometry of the current feature. Prefer using $geometry."},
{ "expression":"geom_to_wkt( geometry( get_feature_by_id( 'streets', 1 ) ) )", "returns":"the geometry in WKT of the feature with the id 1 on the layer \"streets\", e.g. 'POINT(6 50)'"},
{ "expression":"intersects( $geometry, geometry( get_feature( 'streets', 'name', 'Main St.' ) ) )", "returns":"true if the current feature spatially intersects the 'Main St.' named feature in the \"streets\" layer"}
]
}

0 comments on commit 8332f78

Please sign in to comment.