if the linestring is closed, we put the start point index for the last vertex to denote use first point and don't increment the index
Definition at line 132 of file lwout_x3d.c.
133{
135 uint32_t i, j, k, si;
137 uint32_t np;
138
139 j = 0;
140 for (i=0; i < mgeom->
ngeoms; i++)
141 {
145 si = j;
146 for (k=0; k < np ; k++)
147 {
148 if (k)
149 {
151 }
156 {
158 j += 1;
159 }
160 else
161 {
163 }
164 }
165 if (i < (mgeom->
ngeoms - 1) )
166 {
168 }
169 }
171}
int lwline_is_closed(const LWLINE *line)
int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt,...)
Appends a formatted string to the current string buffer, using the format and argument list provided.
References LWMLINE::geoms, LW_SUCCESS, lwline_is_closed(), LWMLINE::ngeoms, POINTARRAY::npoints, LWLINE::points, and stringbuffer_aprintf().
Referenced by asx3d3_multi_sb().