1094{
1096
1097 if (clip_geom)
1098 {
1104
1107 {
1108 POSTGIS_DEBUG(3, "mvt_geom: no geometry after clip");
1109 return NULL;
1110 }
1111 }
1112
1114
1115
1117 {
1118
1119 POSTGIS_DEBUG(1, "mvt_geom: Dropping geometry after type change");
1120 return NULL;
1121 }
1122
1123 return ng;
1124}
void gbox_init(GBOX *gbox)
Zero out all the entries in the GBOX.
#define FLAGS_SET_GEODETIC(flags, value)
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
static uint8 lwgeom_get_basic_type(LWGEOM *geom)
static LWGEOM * mvt_grid_and_validate_geos(LWGEOM *ng, uint8_t basic_type)
Given a geometry, it uses GEOS operations to make sure that it's valid according to the MVT spec and ...
static LWGEOM * mvt_iterate_clip_by_box_geos(LWGEOM *lwgeom, GBOX *clip_gbox, uint8_t basic_type)
Clips the geometry using GEOSIntersection in a "safe way", cleaning the input if necessary and clippi...
Datum buffer(PG_FUNCTION_ARGS)