*
* the nodes anode and anothernode are no more isolated
* because now there is an edge connecting them
- */
+ */
updated_nodes[0].node_id = startNode;
updated_nodes[0].containing_face = -1;
updated_nodes[1].node_id = endNode;
double myaz; /* azimuth of edgeend geometry */
} edgeend;
-/*
+/*
* Get first distinct vertex from endpoint
* @param pa the pointarray to seek points in
* @param ref the point we want to search a distinct one
/* interpolate if start point != end point */
if ( p2d_same(&fp, &lp) ) return 0; /* no distinct points in edge */
-
+
ip->x = fp.x + ( (lp.x - fp.x) * 0.5 );
ip->y = fp.y + ( (lp.y - fp.y) * 0.5 );
node->node_id, node->geom, start_node, end_node);
if ( node->node_id == start_node ) {
start_node_geom = node->geom;
- }
+ }
if ( node->node_id == end_node ) {
end_node_geom = node->geom;
- }
+ }
}
if ( ! skipChecks )
}
}
- /* Link prev_right to us
+ /* Link prev_right to us
* (if it's not us already) */
if ( llabs(prev_right) != newedge.edge_id )
{
_lwt_release_edges(edges, num);
lwerror("GEOS exception on Contains: %s", lwgeom_geos_errmsg);
return -1;
- }
+ }
if ( ! contains )
{{
double snaptol;
lwgeom_free(tmp); /* probably too late, due to internal lwerror */
return -1;
}
- if ( id )
+ if ( id )
{
lwgeom_free(tmp); /* possibly takes "edge" down with it */
return id;
lwgeom_free(tmp); /* probably too late, due to internal lwerror */
return -1;
}
- if ( id )
+ if ( id )
{
lwgeom_free(tmp); /* takes "edge" down with it */
return id;