512{
517
518 POSTGIS_DEBUG(2, "LWGEOM_force_multi called");
519
520
521
522
523
524
526 {
528 {
536 PG_RETURN_POINTER(geom);
537 default:
538 break;
539 }
540 }
541
542
545
546 result = geometry_serialize(ogeom);
547
548 PG_FREE_IF_COPY(geom, 0);
549
550 PG_RETURN_POINTER(
result);
551}
char result[OUT_DOUBLE_BUFFER_SIZE]
int gserialized_has_bbox(const GSERIALIZED *g)
Check if a GSERIALIZED has a bounding box without deserializing first.
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint32_t gserialized_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
LWGEOM * lwgeom_as_multi(const LWGEOM *lwgeom)
Create a new LWGEOM of the appropriate MULTI* type.