97{
99
101 if ( ! lwgeom_out )
102 {
103 return NULL;
104 }
105
106
108 {
109 lwpgnotice("lwgeom_clean: dimensional collapse (%d to %d)",
111
112 return NULL;
113 }
114
115
118 {
119 lwpgnotice("lwgeom_clean: mixed-type output (%s) "
120 "from single-type input (%s)",
123 return NULL;
124 }
125
126
127
128
129
130
131
132 return lwgeom_out;
133}
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.