Skip to content

Commit

Permalink
first example deleted, cause it is for combine function
Browse files Browse the repository at this point in the history
(cherry picked from commit 0e4b098)
  • Loading branch information
stra2da authored and nyalldawson committed Nov 29, 2018
1 parent 605bf22 commit 9e05356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions resources/function_help/json/contains
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"description": "Tests whether a geometry contains another. Returns true if and only if no points of geometry b lie in the exterior of geometry a, and at least one point of the interior of b lies in the interior of a.",
"arguments": [ {"arg":"geometry a","description":"a geometry"},
{"arg":"geometry b","description":"a geometry"}],
"examples": [ { "expression":"geom_to_wkt( combine( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 2 1)' ) ) )", "returns":"MULTILINESTRING((4 4, 2 1), (3 3, 4 4), (4 4, 5 5))"},
{ "expression":"contains( geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ), geom_from_wkt( 'POINT(0.5 0.5 )' ) )", "returns":"true"},
"examples": [ { "expression":"contains( geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ), geom_from_wkt( 'POINT(0.5 0.5 )' ) )", "returns":"true"},
{ "expression":"contains( geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )", "returns":"false"}
]
}

4 changes: 1 addition & 3 deletions resources/function_help/json/convex_hull
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"type": "function",
"description": "Returns the convex hull of a geometry. It represents the minimum convex geometry that encloses all geometries within the set.",
"arguments": [ {"arg":"geometry","description":"a geometry"}],
"examples": [ { "expression":"geom_to_wkt( combine( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 2 1)' ) ) )", "returns":"MULTILINESTRING((4 4, 2 1), (3 3, 4 4), (4 4, 5 5))"},
{ "expression":"geom_to_wkt( convex_hull( geom_from_wkt( 'LINESTRING(3 3, 4 4, 4 10)' ) ) )", "returns":"POLYGON((3 3,4 10,4 4,3 3))"}
"examples": [ { "expression":"geom_to_wkt( convex_hull( geom_from_wkt( 'LINESTRING(3 3, 4 4, 4 10)' ) ) )", "returns":"POLYGON((3 3,4 10,4 4,3 3))"}
]
}

0 comments on commit 9e05356

Please sign in to comment.