QGIS/resources/function_help/json/interior_ring_n

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
738 B
Plaintext
Raw Permalink 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))'"
}],
"tags": ["interior", "polygon", "hole", "ring"]
}