]> granicus.if.org Git - postgis/commitdiff
Remove test that enforces only OGC-standard WKT for GeomFromText(). We'll accept...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 15 Dec 2009 15:08:46 +0000 (15:08 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 15 Dec 2009 15:08:46 +0000 (15:08 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5001 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_ogc.c

index ae41ed5d3e3b13a7b7b0b46c65f6ed2ff17d3ac1..a7dd14cd5df38f2ffa3c30b20a3592789c87e68d 100644 (file)
@@ -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';