1149 "POINT (2.2945672355 48.85822923236)",
1150 "POINTZ (2.2945672355 48.85822923236 15)",
1151 "POINTM (2.2945672355 48.85822923236 12)",
1152 "POINT ZM (2.2945672355 48.85822923236 12 2)",
1153 "MULTIPOINT ((-76.45402132523 44.225406213532))",
1154 "MULTIPOINT Z ((-76.45402132523 44.225406213532 112))",
1155 "MULTIPOINT ZM ((-76.45402132523 44.225406213532 112 44))",
1156 "LINESTRING (2.2945672355 48.85822923236, -76.45402132523 44.225406213532)",
1157 "LINESTRING Z (2.2945672355 48.85822923236 6, -76.45402132523 44.225406213532 8)",
1158 "LINESTRING ZM (2.2945672355 48.85822923236 3 2, -76.45402132523 44.225406213532 9 4)",
1159 "MULTILINESTRING ((2.2945672355 48.85822923236, -76.45402132523 44.225406213532))",
1160 "MULTILINESTRING Z ((2.2945672355 48.85822923236 4, -76.45402132523 44.225406213532 3))"
1163 for ( i = 0; i < (
sizeof ewkt/
sizeof(
char*)); i++ )
1167 GBOX box_from_lwgeom;
1180 CU_ASSERT_TRUE(
gbox_same(&box_from_peek, &box_from_lwgeom));
int gbox_same(const GBOX *g1, const GBOX *g2)
Check if 2 given Gbox are the same.
void gbox_float_round(GBOX *gbox)
Round given GBOX to float boundaries.
void gbox_init(GBOX *gbox)
Zero out all the entries in the GBOX.
static int gserialized_peek_gbox_p(const GSERIALIZED *g, GBOX *gbox)
int gserialized_has_bbox(const GSERIALIZED *gser)
Check if a GSERIALIZED has a bounding box without deserializing first.
GSERIALIZED * gserialized_from_lwgeom(LWGEOM *geom, size_t *size)
Allocate a new GSERIALIZED from an LWGEOM.
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
int lwgeom_calculate_gbox(const LWGEOM *lwgeom, GBOX *gbox)
Calculate bounding box of a geometry, automatically taking into account whether it is cartesian or ge...
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)