[postgis-commits] svn - r3277 - trunk/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Fri Nov 7 06:21:09 PST 2008
Author: mcayland
Date: 2008-11-07 06:21:09 -0800 (Fri, 07 Nov 2008)
New Revision: 3277
Modified:
trunk/lwgeom/lwgeom_functions_basic.c
Log:
Fix GBT#69: ST_Translate crashes when fed circular string. lwgeom_affine_recursive() needs to know about the new lwgeom_getcurve_inspected() function.
Modified: trunk/lwgeom/lwgeom_functions_basic.c
===================================================================
--- trunk/lwgeom/lwgeom_functions_basic.c 2008-11-07 14:18:25 UTC (rev 3276)
+++ trunk/lwgeom/lwgeom_functions_basic.c 2008-11-07 14:21:09 UTC (rev 3277)
@@ -3197,6 +3197,7 @@
LWLINE *line=NULL;
LWPOINT *point=NULL;
LWPOLY *poly=NULL;
+ LWCURVE *curve=NULL;
uchar *subgeom=NULL;
point = lwgeom_getpoint_inspected(inspected, i);
@@ -3238,6 +3239,18 @@
continue;
}
+ curve = lwgeom_getcurve_inspected(inspected, i);
+ if (curve != NULL)
+ {
+ lwgeom_affine_ptarray(curve->points,
+ afac, bfac, cfac,
+ dfac, efac, ffac,
+ gfac, hfac, ifac,
+ xoff, yoff, zoff);
+ lwgeom_release((LWGEOM *)curve);
+ continue;
+ }
+
subgeom = lwgeom_getsubgeometry_inspected(inspected, i);
if ( subgeom == NULL )
{
More information about the postgis-commits
mailing list