Create a new LWGEOM of the appropriate CURVE* type.
Definition at line 448 of file lwgeom.c.
449{
452
453
454
455
456
457
458 switch(type)
459 {
461
463 break;
466 break;
468
471 break;
473
476 break;
478 default:
480 break;
481 }
482
483
484
485 return ogeom;
486}
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().