PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_over_gserialized()

static LWGEOM* lwgeom_over_gserialized ( char *  wkt,

Definition at line 795 of file cu_geodetic.c.

References LWGEOM::flags, FLAGS_SET_GEODETIC, gserialized_from_lwgeom(), LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_gserialized(), and lwgeom_from_wkt().

Referenced by test_lwgeom_check_geodetic().

796 {
797  LWGEOM *lwg;
800  FLAGS_SET_GEODETIC(lwg->flags, 1);
801  *g = gserialized_from_lwgeom(lwg, 0);
802  lwgeom_free(lwg);
803  return lwgeom_from_gserialized(*g);
804 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint8_t flags
Definition: liblwgeom.h:397
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
#define FLAGS_SET_GEODETIC(flags, value)
Definition: liblwgeom.h:149
Definition: liblwgeom.h:2013
GSERIALIZED * gserialized_from_lwgeom(LWGEOM *geom, size_t *size)
Allocate a new GSERIALIZED from an LWGEOM.
Here is the call graph for this function:
Here is the caller graph for this function: