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 130 of file lwout_x3d.c.
131{
133 uint32_t i, j, k, si;
135 uint32_t np;
136
137 j = 0;
138 for (i=0; i < mgeom->
ngeoms; i++)
139 {
143 si = j;
144 for (k=0; k < np ; k++)
145 {
146 if (k)
147 {
149 }
154 {
156 j += 1;
157 }
158 else
159 {
161 }
162 }
163 if (i < (mgeom->
ngeoms - 1) )
164 {
166 }
167 }
169}
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().