Definition at line 2165 of file lwgeom.c.
2166{
2168 uint32_t i;
2169
2170 switch(type)
2171 {
2172
2177 {
2180 break;
2181 }
2183 {
2185 for( i = 0; i < p->
nrings; i++ )
2187 break;
2188 }
2190 {
2192 for( i = 0; i < c->
nrings; i++ )
2194 break;
2195 }
2196 default:
2197 {
2199 {
2201 for( i = 0; i < c->
ngeoms; i++ )
2202 {
2204 }
2205 }
2206 else
2207 {
2209 }
2210 }
2211 }
2212
2213
2216}
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().