mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04:00
19 lines
647 B
Plaintext
19 lines
647 B
Plaintext
{
|
|
"name": "make_valid",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description": "Returns a valid geometry or an empty geometry if the geometry could not be made valid.",
|
|
"arguments": [{
|
|
"arg": "geometry",
|
|
"description": "a geometry"
|
|
}],
|
|
"examples": [{
|
|
"expression": "geom_to_wkt(make_valid(geom_from_wkt('POLYGON((3 2, 4 1, 5 8, 3 2, 4 2))')))",
|
|
"returns": "'GeometryCollection (Polygon ((5 8, 4 1, 3 2, 5 8)),LineString (3 2, 4 2))'"
|
|
}, {
|
|
"expression": "make_valid(geom_from_wkt('LINESTRING(0 0)'))",
|
|
"returns": "<empty geometry>"
|
|
}],
|
|
"tags": ["rules", "valid", "ogc", "according", "formed"]
|
|
}
|