Definition at line 874 of file lwout_gml.c.
References LWLINE::flags, FLAGS_GET_Z, IS_DIMS, LW_GML_SHORTLINE, lwline_is_empty(), pointArray_toGML3(), and LWLINE::points.
Referenced by asgml3_collection_buf(), asgml3_line(), asgml3_multi_buf(), and asgml3_multicurve_buf().
884 ptr += sprintf(ptr,
"<%sLineString", prefix);
888 ptr += sprintf(ptr,
"<%sCurve", prefix);
891 if (srs) ptr += sprintf(ptr,
" srsName=\"%s\"", srs);
892 if (
id) ptr += sprintf(ptr,
" %sid=\"%s\"", prefix,
id);
896 ptr += sprintf(ptr,
"/>");
899 ptr += sprintf(ptr,
">");
903 ptr += sprintf(ptr,
"<%ssegments>", prefix);
904 ptr += sprintf(ptr,
"<%sLineStringSegment>", prefix);
909 ptr += sprintf(ptr,
"<%sposList srsDimension=\"%d\">",
914 ptr += sprintf(ptr,
"<%sposList>", prefix);
919 ptr += sprintf(ptr,
"</%sposList>", prefix);
923 ptr += sprintf(ptr,
"</%sLineString>", prefix);
927 ptr += sprintf(ptr,
"</%sLineStringSegment>", prefix);
928 ptr += sprintf(ptr,
"</%ssegments>", prefix);
929 ptr += sprintf(ptr,
"</%sCurve>", prefix);
#define LW_GML_SHORTLINE
For GML3, use <LineString> rather than <Curve> for lines.
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
int lwline_is_empty(const LWLINE *line)
static size_t pointArray_toGML3(POINTARRAY *pa, char *buf, int precision, int opts)