]> granicus.if.org Git - postgis/commitdiff
forceRHR() and reverse() forced to use pglwgeom_serialize() entry point
authorSandro Santilli <strk@keybit.net>
Wed, 12 Jan 2005 07:27:57 +0000 (07:27 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 12 Jan 2005 07:27:57 +0000 (07:27 +0000)
for honouring the AUTOCACHE_BBOX define

git-svn-id: http://svn.osgeo.org/postgis/trunk@1281 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/BBOXCACHE_BEHAVIOURS
lwgeom/lwgeom_functions_basic.c

index 92ee7bb685b20fdd3b8d0a30269d80d995e833fc..6b1e1f0ec71ce0ecce36599e6c17277052db2b0a 100644 (file)
@@ -101,8 +101,8 @@ section also use it.
        translate(geometry,float8,float8,[float8]) *SRL*
 
        ## These use LWGEOM as a mean to access and modify SERIALIZED form
-       reverse(geometry) *LWG* **SRL**
-       ForceRHR(geometry) *LWG* **SRL**
+       reverse(geometry) *LWG* 
+       ForceRHR(geometry) *LWG* 
 
        segmentize(geometry, float8) *LWG*
 
index 03c353b4e6ea994caa1dfbbaaf49f3f38a1f5fe0..3e18b716068cca14578b3a3be64fdd1e8ef84abe 100644 (file)
@@ -2436,6 +2436,8 @@ Datum LWGEOM_reverse(PG_FUNCTION_ARGS)
        lwgeom = lwgeom_deserialize(SERIALIZED_FORM(geom));
        lwgeom_reverse(lwgeom);
 
+       geom = pglwgeom_serialize(lwgeom);
+
        PG_RETURN_POINTER(geom);
 }
 
@@ -2451,6 +2453,8 @@ Datum LWGEOM_forceRHR_poly(PG_FUNCTION_ARGS)
        lwgeom = lwgeom_deserialize(SERIALIZED_FORM(geom));
        lwgeom_forceRHR(lwgeom);
 
+       geom = pglwgeom_serialize(lwgeom);
+
        PG_RETURN_POINTER(geom);
 }