QGIS/resources/function_help/json/force_polygon_cw
2022-01-13 08:56:17 -05:00

16 lines
659 B
Plaintext

{
"name": "force_polygon_cw",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Forces a geometry to respect the convention where exterior rings are clockwise, interior rings are counter-clockwise.",
"arguments": [{
"arg": "geometry",
"description": "a geometry. Any non-polygon geometries are returned unchanged."
}],
"examples": [{
"expression": "geom_to_wkt(force_polygon_cw(geometry:=geom_from_wkt('POLYGON((-1 -1, 4 0, 4 2, 0 2, -1 -1))')))",
"returns": "'Polygon ((-1 -1, 0 2, 4 2, 4 0, -1 -1))'"
}],
"tags": ["exterior", "clockwise", "respect", "convention", "rings", "interior", "counter", "forces"]
}