make_valid - Add an example of unclosed polygon and reedit empty geometry example

This commit is contained in:
Harrissou Sant-anna 2022-09-15 10:27:20 +02:00 committed by Nyall Dawson
parent f3a424e075
commit c3b1fd43b9

View File

@ -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'))", "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))'" "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)'))", "expression": "make_valid(geom_from_wkt('LINESTRING(0 0)'))",
"returns": " <empty geometry>" "returns": "An empty geometry"
}], }],
"tags": ["rules", "valid", "ogc", "according", "formed", "repair", "fix"] "tags": ["rules", "valid", "ogc", "according", "formed", "repair", "fix"]
} }