Definition at line 906 of file g_serialized.c.
References POINTARRAY::flags, LWPOLY::flags, FLAGS_GET_ZM, FLAGS_NDIMS, getPoint_internal(), LWDEBUG, lwerror(), POINTARRAY::npoints, LWPOLY::nrings, POLYGONTYPE, LWPOLY::rings, and ovdump::type.
Referenced by gserialized_from_lwgeom_any().
916 LWDEBUG(2,
"lwpoly_to_gserialized called");
922 memcpy(loc, &type,
sizeof(
uint32_t));
930 for ( i = 0; i < poly->
nrings; i++ )
944 for ( i = 0; i < poly->
nrings; i++ )
950 lwerror(
"Dimensions mismatch in lwpoly");
957 return (
size_t)(loc - buf);
#define FLAGS_GET_ZM(flags)
#define LWDEBUG(level, msg)
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
#define FLAGS_NDIMS(flags)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.