84{
86
88 if ( ! lwgeom_out )
89 {
90 return NULL;
91 }
92
93
95 {
96 lwpgnotice("lwgeom_clean: dimensional collapse (%d to %d)",
98
99 return NULL;
100 }
101
102
105 {
106 lwpgnotice("lwgeom_clean: mixed-type output (%s) "
107 "from single-type input (%s)",
110 return NULL;
111 }
112
113
114
115
116
117
118
119 return lwgeom_out;
120}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
int lwgeom_dimensionality(const LWGEOM *geom)
Return the dimensionality (relating to point/line/poly) of an lwgeom.
LWGEOM * lwgeom_make_valid(LWGEOM *geom)
Attempts to make an invalid geometries valid w/out losing points.