Definition at line 1039 of file gserialized2.c.
1040{
1041 size_t subsize = 0;
1042 uint8_t *loc;
1043 uint32_t i;
1045
1046 assert(coll);
1047 assert(buf);
1048
1050 loc = buf;
1051
1052
1053 memcpy(loc, &type, sizeof(uint32_t));
1054 loc += sizeof(uint32_t);
1055
1056
1057 memcpy(loc, &coll->
ngeoms,
sizeof(uint32_t));
1058 loc += sizeof(uint32_t);
1059
1060
1061 for (i = 0; i < coll->
ngeoms; i++)
1062 {
1064 lwerror(
"Dimensions mismatch in lwcollection");
1066 loc += subsize;
1067 }
1068
1069 return (size_t)(loc - buf);
1070}
static size_t gserialized2_from_lwgeom_any(const LWGEOM *geom, uint8_t *buf)
#define FLAGS_GET_ZM(flags)
void lwerror(const char *fmt,...)
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().