PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gserialized2_from_any_size()

static size_t gserialized2_from_any_size ( const LWGEOM geom)
static

Definition at line 742 of file gserialized2.c.

743{
744 LWDEBUGF(2, "Input type: %s", lwtype_name(geom->type));
745
746 switch (geom->type)
747 {
748 case POINTTYPE:
750 case LINETYPE:
752 case POLYGONTYPE:
754 case TRIANGLETYPE:
756 case CIRCSTRINGTYPE:
758 case CURVEPOLYTYPE:
759 case COMPOUNDTYPE:
760 case MULTIPOINTTYPE:
761 case MULTILINETYPE:
762 case MULTICURVETYPE:
763 case MULTIPOLYGONTYPE:
764 case MULTISURFACETYPE:
766 case TINTYPE:
767 case COLLECTIONTYPE:
769 default:
770 lwerror("Unknown geometry type: %d - %s", geom->type, lwtype_name(geom->type));
771 return 0;
772 }
773}
static size_t gserialized2_from_lwcircstring_size(const LWCIRCSTRING *curve)
static size_t gserialized2_from_lwpoly_size(const LWPOLY *poly)
static size_t gserialized2_from_lwpoint_size(const LWPOINT *point)
static size_t gserialized2_from_lwtriangle_size(const LWTRIANGLE *triangle)
static size_t gserialized2_from_lwcollection_size(const LWCOLLECTION *col)
static size_t gserialized2_from_lwline_size(const LWLINE *line)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition lwutil.c:216
#define COLLECTIONTYPE
Definition liblwgeom.h:108
#define COMPOUNDTYPE
Definition liblwgeom.h:110
#define CURVEPOLYTYPE
Definition liblwgeom.h:111
#define MULTILINETYPE
Definition liblwgeom.h:106
#define MULTISURFACETYPE
Definition liblwgeom.h:113
#define LINETYPE
Definition liblwgeom.h:103
#define MULTIPOINTTYPE
Definition liblwgeom.h:105
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
Definition liblwgeom.h:102
#define TINTYPE
Definition liblwgeom.h:116
#define MULTIPOLYGONTYPE
Definition liblwgeom.h:107
#define POLYGONTYPE
Definition liblwgeom.h:104
#define POLYHEDRALSURFACETYPE
Definition liblwgeom.h:114
#define CIRCSTRINGTYPE
Definition liblwgeom.h:109
#define MULTICURVETYPE
Definition liblwgeom.h:112
#define TRIANGLETYPE
Definition liblwgeom.h:115
#define LWDEBUGF(level, msg,...)
Definition lwgeom_log.h:106
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
uint8_t type
Definition liblwgeom.h:462

References CIRCSTRINGTYPE, COLLECTIONTYPE, COMPOUNDTYPE, CURVEPOLYTYPE, gserialized2_from_lwcircstring_size(), gserialized2_from_lwcollection_size(), gserialized2_from_lwline_size(), gserialized2_from_lwpoint_size(), gserialized2_from_lwpoly_size(), gserialized2_from_lwtriangle_size(), LINETYPE, LWDEBUGF, lwerror(), lwtype_name(), MULTICURVETYPE, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, MULTISURFACETYPE, POINTTYPE, POLYGONTYPE, POLYHEDRALSURFACETYPE, TINTYPE, TRIANGLETYPE, LWGEOM::type, and LWPOINT::type.

Referenced by gserialized2_from_lwcollection_size(), and gserialized2_from_lwgeom_size().

Here is the call graph for this function:
Here is the caller graph for this function: