[postgis-commits] svn - r3049 - branches/1.3/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Thu Oct 2 09:43:53 PDT 2008
Author: pramsey
Date: 2008-10-02 09:43:53 -0700 (Thu, 02 Oct 2008)
New Revision: 3049
Modified:
branches/1.3/lwgeom/lwgeom_geos_c.c
Log:
Ensure relate(g,g,p) is case insensitive. (#44)
Modified: branches/1.3/lwgeom/lwgeom_geos_c.c
===================================================================
--- branches/1.3/lwgeom/lwgeom_geos_c.c 2008-10-02 16:15:33 UTC (rev 3048)
+++ branches/1.3/lwgeom/lwgeom_geos_c.c 2008-10-02 16:43:53 UTC (rev 3049)
@@ -2458,6 +2458,15 @@
patt = DatumGetCString(DirectFunctionCall1(textout,
PointerGetDatum(PG_GETARG_DATUM(2))));
+ /*
+ ** Need to make sure 't' and 'f' are upper-case before handing to GEOS
+ */
+ for( i = 0; i < strlen(patt); i++ ) {
+ if( patt[i] == 't' ) patt[i] = 'T';
+ if( patt[i] == 'f' ) patt[i] = 'F';
+ }
+
+
#ifdef PROFILE
profstart(PROF_GRUN);
#endif
More information about the postgis-commits
mailing list