Skip to content

Commit

Permalink
add some optional flags in make_polygon expression
Browse files Browse the repository at this point in the history
(cherry picked from commit 06fab90)
  • Loading branch information
Gustry authored and nyalldawson committed Feb 20, 2019
1 parent d0b053e commit bad93ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/function_help/json/make_polygon
Expand Up @@ -5,9 +5,9 @@
"variableLenArguments": true,
"arguments": [
{"arg":"outerRing", "description": "closed line geometry for polygon's outer ring"},
{"arg":"innerRing1", "syntaxOnly": true},
{"arg":"innerRing2", "syntaxOnly": true},
{"arg":"innerRing", "descOnly": true, "description":"optional closed line geometry for inner ring"}],
{"arg":"innerRing1", "optional": true, "syntaxOnly": true},
{"arg":"innerRing2", "optional": true, "syntaxOnly": true},
{"arg":"innerRing", "optional": true, "descOnly": true, "description":"optional closed line geometry for inner ring"}],
"examples": [ { "expression":"geom_to_wkt(make_polygon(geom_from_wkt('LINESTRING( 0 0, 0 1, 1 1, 1 0, 0 0 )')))", "returns":"'Polygon ((0 0, 0 1, 1 1, 1 0, 0 0))'"},
{ "expression":"geom_to_wkt(make_polygon(geom_from_wkt('LINESTRING( 0 0, 0 1, 1 1, 1 0, 0 0 )'),geom_from_wkt('LINESTRING( 0.1 0.1, 0.1 0.2, 0.2 0.2, 0.2 0.1, 0.1 0.1 )'),geom_from_wkt('LINESTRING( 0.8 0.8, 0.8 0.9, 0.9 0.9, 0.9 0.8, 0.8 0.8 )')))", "returns":"'Polygon ((0 0, 0 1, 1 1, 1 0, 0 0),(0.1 0.1, 0.1 0.2, 0.2 0.2, 0.2 0.1, 0.1 0.1),(0.8 0.8, 0.8 0.9, 0.9 0.9, 0.9 0.8, 0.8 0.8))'"}
]
Expand Down

0 comments on commit bad93ce

Please sign in to comment.