243 if (proj_angular_input(pj->
pj, direction))
245 for (i = 0; i < pa->
npoints; i++)
256 PJ_XYZT v = {pa_double[0], pa_double[1], has_z ? pa_double[2] : 0.0, 0.0};
259 PJ_COORD t = proj_trans(pj->
pj, direction, c);
261 int pj_errno_val = proj_errno_reset(pj->
pj);
264 lwerror(
"transform: %s (%d)", proj_errno_string(pj_errno_val), pj_errno_val);
267 pa_double[0] = (t.xyzt).
x;
268 pa_double[1] = (t.xyzt).
y;
270 pa_double[2] = (t.xyzt).z;
282 n_converted = proj_trans_generic(pj->
pj,
290 has_z ? pa_double + 2 : NULL,
291 has_z ? point_size : 0,
292 has_z ? n_points : 0,
298 if (n_converted != n_points)
300 lwerror(
"ptarray_transform: converted (%d) != input (%d)", n_converted, n_points);
304 int pj_errno_val = proj_errno_reset(pj->
pj);
307 lwerror(
"transform: %s (%d)", proj_errno_string(pj_errno_val), pj_errno_val);
313 if (proj_angular_output(pj->
pj, direction))
315 for (i = 0; i < pa->
npoints; i++)
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
void ptarray_set_point4d(POINTARRAY *pa, uint32_t n, const POINT4D *p4d)
int ptarray_has_z(const POINTARRAY *pa)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static size_t ptarray_point_size(const POINTARRAY *pa)
uint8_t * serialized_pointlist