Definition at line 948 of file gserialized1.c.
949{
950 size_t subsize = 0;
951 uint8_t *loc;
952 uint32_t i;
954
955 assert(coll);
956 assert(buf);
957
959 loc = buf;
960
961
962 memcpy(loc, &type, sizeof(uint32_t));
963 loc += sizeof(uint32_t);
964
965
966 memcpy(loc, &coll->
ngeoms,
sizeof(uint32_t));
967 loc += sizeof(uint32_t);
968
969
970 for ( i=0; i<coll->
ngeoms; i++ )
971 {
973 lwerror(
"Dimensions mismatch in lwcollection");
975 loc += subsize;
976 }
977
978 return (size_t)(loc - buf);
979}
static size_t gserialized1_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, gserialized1_from_lwgeom_any(), lwerror(), LWCOLLECTION::ngeoms, and LWCOLLECTION::type.
Referenced by gserialized1_from_lwgeom_any().