128{
131 LWGEOM *igeom = NULL, *ogeom = NULL;
132
133 POSTGIS_DEBUG(2, "LWGEOM_line_desegmentize.");
134
138
139 if (ogeom == NULL)
140 {
141 PG_FREE_IF_COPY(geom, 0);
142 PG_RETURN_NULL();
143 }
144
145 ret = geometry_serialize(ogeom);
147 PG_FREE_IF_COPY(geom, 0);
148 PG_RETURN_POINTER(ret);
149}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_unstroke(const LWGEOM *geom)
Convert linearized type into arc type, de-linearizing the strokes where possible.