[postgis-tickets] r16556 - Follow up to fix review comment
bjorn at wololo.org
bjorn at wololo.org
Sun May 6 10:22:27 PDT 2018
Author: bjornharrtell
Date: 2018-05-06 10:22:27 -0700 (Sun, 06 May 2018)
New Revision: 16556
Modified:
trunk/liblwgeom/lwgeom_topo.c
Log:
Follow up to fix review comment
References #4076
Modified: trunk/liblwgeom/lwgeom_topo.c
===================================================================
--- trunk/liblwgeom/lwgeom_topo.c 2018-05-06 16:34:55 UTC (rev 16555)
+++ trunk/liblwgeom/lwgeom_topo.c 2018-05-06 17:22:27 UTC (rev 16556)
@@ -627,12 +627,13 @@
}
for ( i=0; i<num_nodes; ++i )
{
+ const POINT2D *pt;
LWT_ISO_NODE* node = &(nodes[i]);
if ( node->node_id == start_node ) continue;
if ( node->node_id == end_node ) continue;
/* check if the edge contains this node (not on boundary) */
/* ST_RelateMatch(rec.relate, 'T********') */
- const POINT2D *pt = getPoint2d_cp(node->geom->point, 0);
+ pt = getPoint2d_cp(node->geom->point, 0);
int contains = ptarray_contains_point_partial(geom->points, pt, LW_FALSE, NULL) == LW_BOUNDARY;
if ( contains )
{
More information about the postgis-tickets
mailing list