152{
153 uint32_t i;
160
161
162
163
164 for (i=0; i<ngeoms; i++)
165 {
168 if ( hasz && hasm ) break;
169 }
170
171
172
173
175
176 for ( i=0; i < ngeoms; i++ )
177 {
179
181
183 {
186 }
188 {
189
190
191
192
194 }
196 {
198 for ( uint32_t j = 0; j < mline->
ngeoms; j++ )
199 {
203 }
204 }
206 {
209 {
211 }
213 }
214 else
215 {
218 return NULL;
219 }
220 }
221
224 else {
225
228 }
229
230 return line;
231}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
int lwpoint_getPoint4d_p(const LWPOINT *point, POINT4D *out)
int ptarray_append_ptarray(POINTARRAY *pa1, POINTARRAY *pa2, double gap_tolerance)
Append a POINTARRAY, pa2 to the end of an existing POINTARRAY, pa1.
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
int lwpointiterator_next(LWPOINTITERATOR *s, POINT4D *p)
Attempts to assign the next point in the iterator to p, and advances the iterator to the next point.
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_Z(flags)
LWMLINE * lwgeom_as_lwmline(const LWGEOM *lwgeom)
#define FLAGS_GET_M(flags)
void ptarray_free(POINTARRAY *pa)
int ptarray_append_point(POINTARRAY *pa, const POINT4D *pt, int allow_duplicates)
Append a point to the end of an existing POINTARRAY If allow_duplicate is LW_FALSE,...
#define LW_TRUE
Return types for functions with status returns.
int lwline_is_empty(const LWLINE *line)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
LWLINE * lwline_construct_empty(int32_t srid, char hasz, char hasm)