From: Sandro Santilli Date: Wed, 12 Jan 2005 07:27:57 +0000 (+0000) Subject: forceRHR() and reverse() forced to use pglwgeom_serialize() entry point X-Git-Tag: pgis_1_0_0RC1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c31b10961032e03b793db06d4d37c62b8dac6122;p=postgis forceRHR() and reverse() forced to use pglwgeom_serialize() entry point for honouring the AUTOCACHE_BBOX define git-svn-id: http://svn.osgeo.org/postgis/trunk@1281 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/BBOXCACHE_BEHAVIOURS b/lwgeom/BBOXCACHE_BEHAVIOURS index 92ee7bb68..6b1e1f0ec 100644 --- a/lwgeom/BBOXCACHE_BEHAVIOURS +++ b/lwgeom/BBOXCACHE_BEHAVIOURS @@ -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* diff --git a/lwgeom/lwgeom_functions_basic.c b/lwgeom/lwgeom_functions_basic.c index 03c353b4e..3e18b7160 100644 --- a/lwgeom/lwgeom_functions_basic.c +++ b/lwgeom/lwgeom_functions_basic.c @@ -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); }