POINTARRAY *pa_in = NULL;
LWCOLLECTION *lwgeom_out = NULL;
POINTARRAY *dp = NULL;
- int i, rv;
+ int i;
int added_last_point = 0;
POINT4D *p = NULL, *q = NULL, *r = NULL;
double ordinate_value_p = 0.0, ordinate_value_q = 0.0;
*q = *p;
ordinate_value_q = ordinate_value_p;
}
- rv = getPoint4d_p(pa_in, i, p);
+ getPoint4d_p(pa_in, i, p);
ordinate_value_p = lwpoint_get_ordinate(p, ordinate);
LWDEBUGF(4, " ordinate_value_p %g (current)", ordinate_value_p);
LWDEBUGF(4, " ordinate_value_q %g (previous)", ordinate_value_q);
{
double interpolation_value;
(ordinate_value_q > to) ? (interpolation_value = to) : (interpolation_value = from);
- rv = point_interpolate(q, p, r, hasz, hasm, ordinate, interpolation_value);
- rv = ptarray_append_point(dp, r, LW_FALSE);
+ point_interpolate(q, p, r, hasz, hasm, ordinate, interpolation_value);
+ ptarray_append_point(dp, r, LW_FALSE);
LWDEBUGF(4, "[0] interpolating between (%g, %g) with interpolation point (%g)", ordinate_value_q, ordinate_value_p, interpolation_value);
}
}
/* Add the current vertex to the point array. */
- rv = ptarray_append_point(dp, p, LW_FALSE);
+ ptarray_append_point(dp, p, LW_FALSE);
if ( ordinate_value_p == from || ordinate_value_p == to )
{
added_last_point = 2; /* Added on boundary. */
* to the point array at the range boundary. */
double interpolation_value;
(ordinate_value_p > to) ? (interpolation_value = to) : (interpolation_value = from);
- rv = point_interpolate(q, p, r, hasz, hasm, ordinate, interpolation_value);
- rv = ptarray_append_point(dp, r, LW_FALSE);
+ point_interpolate(q, p, r, hasz, hasm, ordinate, interpolation_value);
+ ptarray_append_point(dp, r, LW_FALSE);
LWDEBUGF(4, " [1] interpolating between (%g, %g) with interpolation point (%g)", ordinate_value_q, ordinate_value_p, interpolation_value);
}
else if ( added_last_point == 2 )
{
double interpolation_value;
(ordinate_value_p > to) ? (interpolation_value = to) : (interpolation_value = from);
- rv = point_interpolate(q, p, r, hasz, hasm, ordinate, interpolation_value);
- rv = ptarray_append_point(dp, r, LW_FALSE);
+ point_interpolate(q, p, r, hasz, hasm, ordinate, interpolation_value);
+ ptarray_append_point(dp, r, LW_FALSE);
LWDEBUGF(4, " [2] interpolating between (%g, %g) with interpolation point (%g)", ordinate_value_q, ordinate_value_p, interpolation_value);
}
}
* so we need to add *two* interpolated points! */
dp = ptarray_construct(hasz, hasm, 2);
/* Interpolate lower point. */
- rv = point_interpolate(p, q, r, hasz, hasm, ordinate, from);
+ point_interpolate(p, q, r, hasz, hasm, ordinate, from);
ptarray_set_point4d(dp, 0, r);
/* Interpolate upper point. */
- rv = point_interpolate(p, q, r, hasz, hasm, ordinate, to);
+ point_interpolate(p, q, r, hasz, hasm, ordinate, to);
ptarray_set_point4d(dp, 1, r);
}
else if ( i && ordinate_value_q > to && ordinate_value_p < from )
* so we need to add *two* interpolated points! */
dp = ptarray_construct(hasz, hasm, 2);
/* Interpolate upper point. */
- rv = point_interpolate(p, q, r, hasz, hasm, ordinate, to);
+ point_interpolate(p, q, r, hasz, hasm, ordinate, to);
ptarray_set_point4d(dp, 0, r);
/* Interpolate lower point. */
- rv = point_interpolate(p, q, r, hasz, hasm, ordinate, from);
+ point_interpolate(p, q, r, hasz, hasm, ordinate, from);
ptarray_set_point4d(dp, 1, r);
}
/* We have an extant point-array, save it out to a multi-line. */