LINESTRING Read a WKB linestring, starting just after the endian byte, type number and optional srid number.
Advance the parse state forward appropriately. There is only one pointarray in a linestring. Optionally check for minimal following of rules (two point minimum).
Definition at line 471 of file lwin_wkb.c.
472{
475 return NULL;
476
477 if( pa == NULL || pa->
npoints == 0 )
478 {
479 if (pa)
482 }
483
485 {
487 return NULL;
488 }
489
491}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
LWLINE * lwline_construct(int32_t srid, GBOX *bbox, POINTARRAY *points)
#define LW_PARSER_CHECK_MINPOINTS
Parser check flags.
void ptarray_free(POINTARRAY *pa)
LWLINE * lwline_construct_empty(int32_t srid, char hasz, char hasm)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static POINTARRAY * ptarray_from_wkb_state(wkb_parse_state *s)
POINTARRAY Read a dynamically sized point array and advance the parse state forward.
References LW_PARSER_CHECK_MINPOINTS, lwerror(), lwline_construct(), lwline_construct_empty(), lwtype_name(), POINTARRAY::npoints, ptarray_free(), ptarray_from_wkb_state(), and s.
Referenced by lwgeom_from_wkb_state().