Skip to content
Permalink
Browse files

add some optional flags in make_polygon expression

(cherry picked from commit 06fab90)
  • Loading branch information
Gustry authored and nyalldawson committed Feb 19, 2019
1 parent d0b053e commit bad93ce8738a4541d486b44dd50901356d6f1302
Showing with 3 additions and 3 deletions.
  1. +3 −3 resources/function_help/json/make_polygon
@@ -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))'"}
]

0 comments on commit bad93ce

Please sign in to comment.
You can’t perform that action at this time.