Create a new LWGEOM of the appropriate CURVE* type.
Definition at line 420 of file lwgeom.c.
421{
424
425
426
427
428
429
430 switch(type)
431 {
433
435 break;
438 break;
440
443 break;
445
448 break;
450 default:
452 break;
453 }
454
455
456
457 return ogeom;
458}
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().