QGIS/resources/function_help/json/interior_ring_n

10 lines
649 B
Plaintext
Raw Normal View History

{
"name": "interior_ring_n",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
"description": "Returns a specific interior ring from a polygon geometry, or NULL if the geometry is not a polygon.",
"arguments": [ {"arg":"geometry","description":"polygon geometry"},
{"arg":"index","description":"index of interior to return, where 1 is the first interior ring"} ],
"examples": [ { "expression":"geom_to_wkt(interior_ring_n(geom_from_wkt('POLYGON((-1 -1, 4 0, 4 2, 0 2, -1 -1),(-0.1 -0.1, 0.4 0, 0.4 0.2, 0 0.2, -0.1 -0.1),(-1 -1, 4 0, 4 2, 0 2, -1 -1))'),1))", "returns":"'LineString (-0.1 -0.1, 0.4 0, 0.4 0.2, 0 0.2, -0.1 -0.1))'"}]
}