Create a new LWGEOM of the appropriate CURVE* type.
Definition at line 402 of file lwgeom.c.
403{
406
407
408
409
410
411
412 switch(type)
413 {
415
417 break;
420 break;
422
425 break;
427
430 break;
432 default:
434 break;
435 }
436
437
438
439 return ogeom;
440}
LWCURVEPOLY * lwcurvepoly_construct_from_lwpoly(LWPOLY *lwpoly)
Construct an equivalent curve polygon from a polygon.
LWCOMPOUND * lwcompound_construct_from_lwline(const LWLINE *lwpoly)
Construct an equivalent compound curve from a linestring.
LWGEOM * lwgeom_clone(const LWGEOM *lwgeom)
Clone LWGEOM object.
LWPOLY * lwgeom_as_lwpoly(const LWGEOM *lwgeom)
References COLLECTIONTYPE, LINETYPE, lwcompound_construct_from_lwline(), lwcurvepoly_construct_from_lwpoly(), lwgeom_as_lwpoly(), lwgeom_clone(), MULTICURVETYPE, MULTILINETYPE, MULTIPOLYGONTYPE, MULTISURFACETYPE, POLYGONTYPE, and LWGEOM::type.
Referenced by LWGEOM_force_curve(), and test_lwgeom_as_curve().