Definition at line 1750 of file lwgeom.c.
1759 if (preserve_collapsed)
1778 if (preserve_collapsed)
1790 if (pa->
npoints == 2 && !preserve_collapsed)
1801 for (i = 0; i < g->
nrings; i++)
1805 int minpoints = (preserve_collapsed && i == 0) ? 4 : 0;
1831 for (i = 0; i < col->
ngeoms; i++)
1842 col->
geoms[j++] = g;
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
void ptarray_free(POINTARRAY *pa)
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
void ptarray_simplify_in_place(POINTARRAY *pa, double epsilon, uint32_t minpts)
void ptarray_copy_point(POINTARRAY *pa, uint32_t from, uint32_t to)
int p2d_same(const POINT2D *p1, const POINT2D *p2)
void lwgeom_simplify_in_place(LWGEOM *geom, double epsilon, int preserve_collapsed)
LWTRIANGLE * lwgeom_as_lwtriangle(const LWGEOM *lwgeom)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
void lwgeom_free(LWGEOM *lwgeom)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
References COLLECTIONTYPE, LWCOLLECTION::geoms, getPoint2d_cp(), LINETYPE, lwerror(), lwgeom_as_lwtriangle(), lwgeom_free(), lwgeom_is_empty(), lwgeom_simplify_in_place(), lwtype_name(), POINTARRAY::maxpoints, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, POINTARRAY::npoints, LWPOLY::nrings, p2d_same(), LWLINE::points, LWTRIANGLE::points, POINTTYPE, POLYGONTYPE, ptarray_copy_point(), ptarray_free(), ptarray_simplify_in_place(), LWPOLY::rings, TINTYPE, TRIANGLETYPE, and LWGEOM::type.
Referenced by lwgeom_simplify(), lwgeom_simplify_in_place(), lwgeom_subdivide_recursive(), and mvt_geom().