[postgis-tickets] r17277 - Fix cut/paste error in NULL guard

Paul Ramsey pramsey at cleverelephant.ca
Fri Feb 22 03:42:41 PST 2019


Author: pramsey
Date: 2019-02-22 15:42:41 -0800 (Fri, 22 Feb 2019)
New Revision: 17277

Modified:
   trunk/liblwgeom/lwgeom_transform.c
Log:
Fix cut/paste error in NULL guard


Modified: trunk/liblwgeom/lwgeom_transform.c
===================================================================
--- trunk/liblwgeom/lwgeom_transform.c	2019-02-22 23:40:42 UTC (rev 17276)
+++ trunk/liblwgeom/lwgeom_transform.c	2019-02-22 23:42:41 UTC (rev 17277)
@@ -352,12 +352,10 @@
 	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;



More information about the postgis-tickets mailing list