From e4450ff10b36a55ebd7410568494e2e6f326364c Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 15 Dec 2009 15:08:46 +0000 Subject: [PATCH] Remove test that enforces only OGC-standard WKT for GeomFromText(). We'll accept any string we can parse, just like geometry_in(). (#332) git-svn-id: http://svn.osgeo.org/postgis/trunk@5001 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/lwgeom_ogc.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/postgis/lwgeom_ogc.c b/postgis/lwgeom_ogc.c index ae41ed5d3..a7dd14cd5 100644 --- a/postgis/lwgeom_ogc.c +++ b/postgis/lwgeom_ogc.c @@ -1036,18 +1036,6 @@ Datum LWGEOM_from_text(PG_FUNCTION_ARGS) fc=*(VARDATA(wkttext)); - /* - * 'S' is accepted for backward compatibility, a WARNING - * is issued later. - * - * TODO: reject 'SRID=x;..' form... - */ - if ( fc!='P' && fc!='L' && fc!='M' && fc!='G' && fc!='S' && fc!='C' ) - { - lwerror("Invalid OGC WKT (does not start with P,L,M,C or G)"); - PG_RETURN_NULL(); - } - wkt = lwalloc(size+1); memcpy(wkt, VARDATA(wkttext), size); wkt[size]='\0'; -- 2.50.1