From c3b1fd43b9ffeb6f8756514a8e1d7bff48b7fbfa Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Thu, 15 Sep 2022 10:27:20 +0200 Subject: [PATCH] make_valid - Add an example of unclosed polygon and reedit empty geometry example --- resources/function_help/json/make_valid | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/function_help/json/make_valid b/resources/function_help/json/make_valid index 5448aa2a11c..73d08642648 100644 --- a/resources/function_help/json/make_valid +++ b/resources/function_help/json/make_valid @@ -26,9 +26,12 @@ }, { "expression": "geom_to_wkt(make_valid(geom_from_wkt('POLYGON((3 2, 4 1, 5 8, 3 2, 4 2))'), 'linework'))", "returns": "'GeometryCollection (Polygon ((5 8, 4 1, 3 2, 5 8)),LineString (3 2, 4 2))'" + }, { + "expression": "geom_to_wkt(make_valid(geom_from_wkt('POLYGON((3 2, 4 1, 5 8))'), method:='linework'))", + "returns": "'Polygon ((3 2, 4 1, 5 8, 3 2))'" }, { "expression": "make_valid(geom_from_wkt('LINESTRING(0 0)'))", - "returns": " <empty geometry>" + "returns": "An empty geometry" }], "tags": ["rules", "valid", "ogc", "according", "formed", "repair", "fix"] }