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