Definition at line 1138 of file lwout_gml.c.
References CIRCSTRINGTYPE, LWCOMPOUND::flags, FLAGS_GET_Z, LWCOMPOUND::geoms, IS_DIMS, LINETYPE, LWCOMPOUND::ngeoms, pointArray_toGML3(), and LWGEOM::type.
Referenced by asgml3_compound(), asgml3_curvepoly_buf(), and asgml3_multicurve_buf().
1150 ptr += sprintf( ptr,
"<%sCurve", prefix );
1153 ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
1157 ptr += sprintf(ptr,
" %sid=\"%s\"", prefix,
id );
1159 ptr += sprintf( ptr,
">" );
1160 ptr += sprintf( ptr,
"<%ssegments>", prefix );
1162 for( i = 0; i < col->
ngeoms; ++i )
1164 subgeom = col->
geoms[i];
1172 ptr += sprintf( ptr,
"<%sLineStringSegment><%sposList", prefix, prefix );
1175 ptr += sprintf(ptr,
" srsDimension=\"%d\"", dimension);
1177 ptr += sprintf(ptr,
">");
1179 ptr += sprintf( ptr,
"</%sposList></%sLineStringSegment>", prefix, prefix );
1183 ptr += sprintf( ptr,
"<%sArcString><%sposList" , prefix, prefix );
1186 ptr += sprintf(ptr,
" srsDimension=\"%d\"", dimension);
1188 ptr += sprintf(ptr,
">");
1190 ptr += sprintf( ptr,
"</%sposList></%sArcString>", prefix, prefix );
1194 ptr += sprintf( ptr,
"</%ssegments>", prefix );
1195 ptr += sprintf( ptr,
"</%sCurve>", prefix );
1196 return ( ptr - output );
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
static size_t pointArray_toGML3(POINTARRAY *pa, char *buf, int precision, int opts)