Definition at line 1009 of file gserialized2.c.
1010{
1011 size_t subsize = 0;
1012 uint8_t *loc;
1013 uint32_t i;
1015
1016 assert(coll);
1017 assert(buf);
1018
1020 loc = buf;
1021
1022
1023 memcpy(loc, &type, sizeof(uint32_t));
1024 loc += sizeof(uint32_t);
1025
1026
1027 memcpy(loc, &coll->
ngeoms,
sizeof(uint32_t));
1028 loc += sizeof(uint32_t);
1029
1030
1031 for (i = 0; i < coll->
ngeoms; i++)
1032 {
1034 lwerror(
"Dimensions mismatch in lwcollection");
1036 loc += subsize;
1037 }
1038
1039 return (size_t)(loc - buf);
1040}
static size_t gserialized2_from_lwgeom_any(const LWGEOM *geom, uint8_t *buf)
#define FLAGS_GET_ZM(flags)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
References LWGEOM::flags, LWCOLLECTION::flags, FLAGS_GET_ZM, LWCOLLECTION::geoms, gserialized2_from_lwgeom_any(), lwerror(), LWCOLLECTION::ngeoms, and LWCOLLECTION::type.
Referenced by gserialized2_from_lwgeom_any().