[postgis-commits] svn - r3273 - branches/1.3/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Fri Nov 7 05:45:42 PST 2008
Author: mcayland
Date: 2008-11-07 05:45:42 -0800 (Fri, 07 Nov 2008)
New Revision: 3273
Modified:
branches/1.3/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: branches/1.3/lwgeom/lwgeom_functions_basic.c
===================================================================
--- branches/1.3/lwgeom/lwgeom_functions_basic.c 2008-11-07 13:18:11 UTC (rev 3272)
+++ branches/1.3/lwgeom/lwgeom_functions_basic.c 2008-11-07 13:45:42 UTC (rev 3273)
@@ -3325,6 +3325,7 @@
LWLINE *line=NULL;
LWPOINT *point=NULL;
LWPOLY *poly=NULL;
+ LWCURVE *curve=NULL;
uchar *subgeom=NULL;
point = lwgeom_getpoint_inspected(inspected, i);
@@ -3366,6 +3367,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