Pete King 0e7edd5588 [feature] is_valid expression
Returns true if a geometry is considered valid according to the OGC validity rules
2019-11-18 02:31:48 +10:00

9 lines
429 B
Plaintext

{
"name": "is_valid",
"type": "function",
"description": "Returns true if a geometry is valid; if it is well-formed in 2D according to the OGC rules.",
"arguments": [ {"arg":"geom","description":"a geometry"}],
"examples": [ { "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"}]
}