From: Sandro Santilli Date: Tue, 27 Mar 2012 14:32:33 +0000 (+0000) Subject: Accept POINT types in ST_MakeValid (#1719) X-Git-Tag: 2.0.0rc1~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7021eebac9b46e7cf1c1b00931565efa062890f7;p=postgis Accept POINT types in ST_MakeValid (#1719) git-svn-id: http://svn.osgeo.org/postgis/trunk@9554 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_geos_clean.c b/postgis/lwgeom_geos_clean.c index fb4075112..30220edc3 100644 --- a/postgis/lwgeom_geos_clean.c +++ b/postgis/lwgeom_geos_clean.c @@ -67,6 +67,7 @@ Datum ST_MakeValid(PG_FUNCTION_ARGS) switch ( lwgeom_in->type ) { + case POINTTYPE: case LINETYPE: case POLYGONTYPE: case MULTILINETYPE: diff --git a/regress/clean.sql b/regress/clean.sql index d97ca972f..f7ed33aad 100644 --- a/regress/clean.sql +++ b/regress/clean.sql @@ -42,4 +42,7 @@ SELECT origin,caseno, (st_isvaliddetail(orig)).valid FROM clean_cases; + +SELECT '#1719.1', ST_AsEWKT(ST_MakeValid('POINT(0 0)')); + DROP TABLE clean_cases; diff --git a/regress/clean_expected b/regress/clean_expected index 480225c1a..13ba3022a 100644 --- a/regress/clean_expected +++ b/regress/clean_expected @@ -26,3 +26,4 @@ PG|2|t|t|f PG|3|t|t|f PG|4|t|t|f PG|5|t|t|f +#1719.1|POINT(0 0)