2019-11-18 02:31:48 +10:00
|
|
|
{
|
|
|
|
"name": "is_valid",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2019-11-18 02:31:48 +10:00
|
|
|
"description": "Returns true if a geometry is valid; if it is well-formed in 2D according to the OGC rules.",
|
2020-07-29 17:39:43 +02:00
|
|
|
"arguments": [ {"arg":"geometry","description":"a geometry"}],
|
2019-11-18 02:31:48 +10:00
|
|
|
"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"}]
|
|
|
|
}
|