Commit d53ddbcd authored by Paul Ramsey's avatar Paul Ramsey

Fix cut/paste error in NULL guard

git-svn-id: b70326c6-7e19-0410-871a-916f4a2858ee
parent e31cde78
Pipeline #48831433 passed with stage
in 30 minutes and 7 seconds
......@@ -352,12 +352,10 @@ ptarray_transform(POINTARRAY* pa, PJ* pj)
double *pa_double = (double*)(pa->serialized_pointlist);
int input_swapped, output_swapped;
/* XXXX TODO check that the PJ has decimal degrees as units in input/output */
PJ* pj_source_crs = proj_get_source_crs(NULL, pj);
PJ* pj_target_crs = proj_get_target_crs(NULL, pj);
if (!(pj_source_crs && pj_source_crs))
if (!(pj_source_crs && pj_target_crs))
lwerror("ptarray_transform: unable to access source and target crs");
return LW_FAILURE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment