From: Sandro Santilli Date: Sat, 11 Mar 2017 14:33:33 +0000 (+0000) Subject: Print more digits in debugging outputs about azimuth computation X-Git-Tag: 2.4.0alpha~154 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51bc83ef59e4ede480a1e1eb3775163c795bda26;p=postgis Print more digits in debugging outputs about azimuth computation git-svn-id: http://svn.osgeo.org/postgis/trunk@15329 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeom_topo.c b/liblwgeom/lwgeom_topo.c index 33fbc4611..9602238be 100644 --- a/liblwgeom/lwgeom_topo.c +++ b/liblwgeom/lwgeom_topo.c @@ -18,7 +18,7 @@ * ********************************************************************** * - * Copyright (C) 2015 Sandro Santilli + * Copyright (C) 2015-2017 Sandro Santilli * **********************************************************************/ @@ -1465,11 +1465,11 @@ _lwt_InitEdgeEndByLine(edgeend *fee, edgeend *lee, LWLINE *edge, return -1; } if ( ! azimuth_pt_pt(fp, &pt, &(fee->myaz)) ) { - lwerror("error computing azimuth of first edgeend [%g %g,%g %g]", + lwerror("error computing azimuth of first edgeend [%.15g %.15g,%.15g %.15g]", fp->x, fp->y, pt.x, pt.y); return -2; } - LWDEBUGF(1, "azimuth of first edge end [%g %g,%g %g] is %g", + LWDEBUGF(1, "azimuth of first edge end [%.15g %.15g,%.15g %.15g] is %g", fp->x, fp->y, pt.x, pt.y, fee->myaz); /* Compute azimuth of second edge end */ @@ -1480,11 +1480,11 @@ _lwt_InitEdgeEndByLine(edgeend *fee, edgeend *lee, LWLINE *edge, return -1; } if ( ! azimuth_pt_pt(lp, &pt, &(lee->myaz)) ) { - lwerror("error computing azimuth of last edgeend [%g %g,%g %g]", + lwerror("error computing azimuth of last edgeend [%.15g %.15g,%.15g %.15g]", lp->x, lp->y, pt.x, pt.y); return -2; } - LWDEBUGF(1, "azimuth of last edge end [%g %g,%g %g] is %g", + LWDEBUGF(1, "azimuth of last edge end [%.15g %.15g,%.15g %.15g] is %g", lp->x, lp->y, pt.x, pt.y, lee->myaz); return 0; @@ -1579,7 +1579,7 @@ _lwt_FindAdjacentEdges( LWT_TOPOLOGY* topo, LWT_ELEMID node, edgeend *data, LWT_ELEMID id = edge->edge_id; _lwt_release_edges(edges, numedges); lwgeom_free(cleangeom); - lwerror("error computing azimuth of edge %d first edgeend [%g,%g-%g,%g]", + lwerror("error computing azimuth of edge %d first edgeend [%.15g %.15g,%.15g %.15g]", id, p1.x, p1.y, p2.x, p2.y); return -1; }} @@ -1635,7 +1635,7 @@ _lwt_FindAdjacentEdges( LWT_TOPOLOGY* topo, LWT_ELEMID node, edgeend *data, LWT_ELEMID id = edge->edge_id; _lwt_release_edges(edges, numedges); lwgeom_free(cleangeom); - lwerror("error computing azimuth of edge %d last edgeend [%g,%g-%g,%g]", + lwerror("error computing azimuth of edge %d last edgeend [%.15g %.15g,%.15g %.15g]", id, p1.x, p1.y, p2.x, p2.y); return -1; }}