mirror of
https://github.com/qgis/QGIS.git
synced 2025-07-07 00:02:59 -04:00
22 lines
661 B
Plaintext
22 lines
661 B
Plaintext
{
|
|
"name": "is_valid",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description": "Returns TRUE if a geometry is valid; if it is well-formed in 2D according to the OGC rules.",
|
|
"arguments": [{
|
|
"arg": "geometry",
|
|
"description": "a geometry"
|
|
}],
|
|
"examples": [{
|
|
"expression": "is_valid(@geometry)",
|
|
"returns": "checks if the current feature's geometry is valid"
|
|
},{
|
|
"expression": "is_valid(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2, 0 0)'))",
|
|
"returns": "TRUE"
|
|
}, {
|
|
"expression": "is_valid(geom_from_wkt('LINESTRING(0 0)'))",
|
|
"returns": "FALSE"
|
|
}],
|
|
"tags": ["rules", "valid", "ogc", "according", "formed"]
|
|
}
|