Definition at line 2137 of file lwgeom.c.
2138{
2140 uint32_t i;
2141
2142 switch(type)
2143 {
2144
2149 {
2152 break;
2153 }
2155 {
2157 for( i = 0; i < p->
nrings; i++ )
2159 break;
2160 }
2162 {
2164 for( i = 0; i < c->
nrings; i++ )
2166 break;
2167 }
2168 default:
2169 {
2171 {
2173 for( i = 0; i < c->
ngeoms; i++ )
2174 {
2176 }
2177 }
2178 else
2179 {
2181 }
2182 }
2183 }
2184
2185
2188}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
void ptarray_scale(POINTARRAY *pa, const POINT4D *factor)
WARNING, make sure you send in only 16-member double arrays or obviously things will go pear-shaped f...
void lwgeom_refresh_bbox(LWGEOM *lwgeom)
Drop current bbox and calculate a fresh one.
int lwgeom_is_collection(const LWGEOM *geom)
Determine whether a LWGEOM contains sub-geometries or not This basically just checks that the struct ...
void lwgeom_scale(LWGEOM *geom, const POINT4D *factor)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
References LWGEOM::bbox, CIRCSTRINGTYPE, CURVEPOLYTYPE, LWCOLLECTION::geoms, LINETYPE, lwerror(), lwgeom_is_collection(), lwgeom_refresh_bbox(), lwgeom_scale(), lwtype_name(), LWCOLLECTION::ngeoms, LWPOLY::nrings, LWCURVEPOLY::nrings, LWLINE::points, POINTTYPE, POLYGONTYPE, ptarray_scale(), LWPOLY::rings, LWCURVEPOLY::rings, TRIANGLETYPE, and LWGEOM::type.
Referenced by lwgeom_scale(), ST_Scale(), and test_lwgeom_scale().