getPoint2d_p(pa, 0, &p1);
getPoint2d_p(pa, 1, &p2);
LWDEBUGF(1, "edge %" PRId64
- "starts on node %" PRId64
+ " starts on node %" PRId64
", edgeend is %g,%g-%g,%g",
edge->edge_id, node, p1.x, p1.y, p2.x, p2.y);
if ( ! azimuth_pt_pt(&p1, &p2, &az) ) {
if ( azdif < minaz ) {
data->nextCW = edge->edge_id; /* outgoing */
data->cwFace = edge->face_left;
- LWDEBUGF(1, "new nextCW edge is %" PRId64 ", "
- "outgoing, "
- "with face_left %" PRId64 " and face_right %" PRId64 " "
- "(previous had minaz=%g, face_left is new cwFace)",
+ LWDEBUGF(1, "new nextCW edge is %" PRId64
+ ", outgoing, "
+ "with face_left %" PRId64 " and face_right %" PRId64
+ " (previous had minaz=%g, face_left is new cwFace)",
edge->edge_id, edge->face_left,
edge->face_right, minaz);
minaz = azdif;
else if ( azdif > maxaz ) {
data->nextCCW = edge->edge_id; /* outgoing */
data->ccwFace = edge->face_right;
- LWDEBUGF(1, "new nextCCW edge is %" PRId64 ", "
- "outgoing, "
- "with face_left %" PRId64 " and face_right %" PRId64 " "
- "(previous had maxaz=%g, face_right is new ccwFace)",
+ LWDEBUGF(1, "new nextCCW edge is %" PRId64
+ ", outgoing, "
+ "with face_left %" PRId64 " and face_right %" PRId64
+ " (previous had maxaz=%g, face_right is new ccwFace)",
edge->edge_id, edge->face_left,
edge->face_right, maxaz);
maxaz = azdif;
data->nextCW = data->nextCCW = -edge->edge_id; /* incoming */
data->cwFace = edge->face_right;
data->ccwFace = edge->face_left;
- LWDEBUGF(1, "new nextCW and nextCCW edge is %" PRId64 ", "
- "incoming, "
- "with face_left %" PRId64 " and face_right %" PRId64 " "
- "(face_right is new cwFace, face_left is new ccwFace)",
+ LWDEBUGF(1, "new nextCW and nextCCW edge is %" PRId64
+ ", incoming, "
+ "with face_left %" PRId64 " and face_right %" PRId64
+ " (face_right is new cwFace, face_left is new ccwFace)",
edge->edge_id, edge->face_left,
edge->face_right);
} else {
if ( azdif < minaz ) {
data->nextCW = -edge->edge_id; /* incoming */
data->cwFace = edge->face_right;
- LWDEBUGF(1, "new nextCW edge is %" PRId64 ", "
- "incoming, "
+ LWDEBUGF(1, "new nextCW edge is %" PRId64
+ ", incoming, "
"with face_left %" PRId64 " and face_right %" PRId64
" (previous had minaz=%g, face_right is new cwFace)",
edge->edge_id, edge->face_left,
else if ( azdif > maxaz ) {
data->nextCCW = -edge->edge_id; /* incoming */
data->ccwFace = edge->face_left;
- LWDEBUGF(1, "new nextCCW edge is %" PRId64 ", "
- "outgoing from start point, "
+ LWDEBUGF(1, "new nextCCW edge is %" PRId64
+ ", outgoing, from start point, "
"with face_left %" PRId64 " and face_right %" PRId64
" (previous had maxaz=%g, face_left is new ccwFace)",
edge->edge_id, edge->face_left,
appendStringInfoChar(str, '(');
if ( fields & LWT_COL_EDGE_EDGE_ID ) {
- if ( edge->edge_id != -1 ) appendStringInfo(str, "%" PRId64, edge->edge_id);
- else appendStringInfoString(str, "DEFAULT");
+ if ( edge->edge_id != -1 )
+ appendStringInfo(str, "%" PRId64, edge->edge_id);
+ else
+ appendStringInfoString(str, "DEFAULT");
sep = ",";
}
if ( fields & LWT_COL_EDGE_START_NODE ) {
}
if ( fields & LWT_COL_EDGE_NEXT_LEFT ) {
appendStringInfo(str, "%s%" PRId64, sep, edge->next_left);
- if ( fullEdgeData ) appendStringInfo(str, ",%" PRId64, ABS(edge->next_left));
+ if ( fullEdgeData )
+ appendStringInfo(str, ",%" PRId64, ABS(edge->next_left));
sep = ",";
}
if ( fields & LWT_COL_EDGE_NEXT_RIGHT ) {
appendStringInfo(str, "%s%" PRId64, sep, edge->next_right);
- if ( fullEdgeData ) appendStringInfo(str, ",%" PRId64, ABS(edge->next_right));
+ if ( fullEdgeData )
+ appendStringInfo(str, ",%" PRId64, ABS(edge->next_right));
sep = ",";
}
if ( fields & LWT_COL_EDGE_GEOM )
appendStringInfoChar(str, '(');
if ( fields & LWT_COL_NODE_NODE_ID ) {
- if ( node->node_id != -1 ) appendStringInfo(str, "%" PRId64, node->node_id);
- else appendStringInfoString(str, "DEFAULT");
+ if ( node->node_id != -1 )
+ appendStringInfo(str, "%" PRId64, node->node_id);
+ else
+ appendStringInfoString(str, "DEFAULT");
sep = ",";
}
static void
addFaceValues(StringInfo str, LWT_ISO_FACE *face, int srid)
{
- if ( face->face_id != -1 ) appendStringInfo(str, "(%" PRId64, face->face_id);
- else appendStringInfoString(str, "(DEFAULT");
+ if ( face->face_id != -1 )
+ appendStringInfo(str, "(%" PRId64, face->face_id);
+ else
+ appendStringInfoString(str, "(DEFAULT");
if ( face->mbr ) {
appendStringInfo(str, ",ST_SetSRID(ST_MakeEnvelope(%g,%g,%g,%g),%d))",