543{
548
550 PG_RETURN_NULL();
551
553 PG_RETURN_INT32(0);
554
555
556
557
558
559
561 {
564 }
565
566
567
568
569
571 {
574 }
575
576
577
578
579 else
580 {
581 elog(ERROR, "%s unsupported ring type %d", __func__, type);
582 }
583
585 PG_FREE_IF_COPY(geom, 0);
587 PG_RETURN_NULL();
588 else
590}
char result[OUT_DOUBLE_BUFFER_SIZE]
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
int lwgeom_has_rings(const LWGEOM *geom)
Is this a type that has rings enclosing an area, but is not a collection of areas?...
void lwgeom_free(LWGEOM *geom)
LWCURVEPOLY * lwgeom_as_lwcurvepoly(const LWGEOM *lwgeom)
LWPOLY * lwgeom_as_lwpoly(const LWGEOM *lwgeom)
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)