[postgis-tickets] r17278 - Remove unused code
Paul Ramsey
pramsey at cleverelephant.ca
Fri Feb 22 03:44:40 PST 2019
Author: pramsey
Date: 2019-02-22 15:44:39 -0800 (Fri, 22 Feb 2019)
New Revision: 17278
Modified:
trunk/liblwgeom/lwgeom_transform.c
Log:
Remove unused code
Modified: trunk/liblwgeom/lwgeom_transform.c
===================================================================
--- trunk/liblwgeom/lwgeom_transform.c 2019-02-22 23:42:41 UTC (rev 17277)
+++ trunk/liblwgeom/lwgeom_transform.c 2019-02-22 23:44:39 UTC (rev 17278)
@@ -428,55 +428,4 @@
return LW_SUCCESS;
}
-#if 0
-int
-point4d_transform(POINT4D *pt, PJ* pj)
-{
- POINT4D pt_src = *pt; /* Copy for error report*/
- PJ_COORD pj_coord_src, pj_coord_dst;
- int input_swapped = proj_crs_is_swapped(proj_get_source_crs(NULL, pj));
- int output_swapped = proj_crs_is_swapped(proj_get_target_crs(NULL, pj));
-
- if (proj_angular_input(pj, PJ_FWD))
- to_rad(pt);
-
- LWDEBUGF(4, "transforming POINT(%f %f) using '%s'",
- pt_src.x, pt_src.y, (proj_pj_info(pj)).definition);
-
- if (input_swapped)
- pj_coord_src = proj_coord(pt->y, pt->x, pt->z, pt->m);
- else
- pj_coord_src = proj_coord(pt->x, pt->y, pt->z, pt->m);
-
- pj_coord_dst = proj_trans(pj, PJ_FWD, pj_coord_src);
-
- int pj_errno_val = proj_errno(pj);
- if (pj_errno_val)
- {
- lwerror("point4d_transform: couldn't project point (%g %g %g): %s (%d)",
- pt_src.x, pt_src.y, pt_src.z,
- proj_errno_string(pj_errno_val), pj_errno_val);
- return LW_FAILURE;
- }
-
- if (output_swapped)
- {
- pt->x = pj_coord_dst.xyzt.x;
- pt->y = pj_coord_dst.xyzt.y;
- }
- else
- {
- pt->x = pj_coord_dst.xyzt.x;
- pt->y = pj_coord_dst.xyzt.y;
- }
- pt->z = pj_coord_dst.xyzt.z;
- pt->m = pt_src.m;
-
- if (proj_angular_output(pj, PJ_FWD))
- to_dec(pt);
- return LW_SUCCESS;
-}
-#endif /* point4d_transform */
-
-
#endif
More information about the postgis-tickets
mailing list