POLYGON.
278 LWDEBUG(2,
"Entering lwpoly_from_twkb_state");
289 LWDEBUGF(4,
"Polygon has %d rings", nrings);
295 for( i = 0; i < nrings; i++ )
324 LWDEBUG(2,
"Unable to add ring to polygon");
325 lwerror(
"Unable to add ring to polygon");
int lwpoly_add_ring(LWPOLY *poly, POINTARRAY *pa)
Add a ring, allocating extra space if necessary.
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
#define LW_PARSER_CHECK_MINPOINTS
Parser check flags.
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,...
int ptarray_is_closed_2d(const POINTARRAY *pa)
#define SRID_UNKNOWN
Unknown SRID value.
LWPOLY * lwpoly_construct_empty(int srid, char hasz, char hasm)
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static POINTARRAY * ptarray_from_twkb_state(twkb_parse_state *s, uint32_t npoints)
POINTARRAY Read a dynamically sized point array and advance the parse state forward.
static uint64_t twkb_parse_state_uvarint(twkb_parse_state *s)