PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_over_gserialized()

static LWGEOM* lwgeom_over_gserialized ( char *  wkt,
GSERIALIZED **  g 
)
static

Definition at line 795 of file cu_geodetic.c.

796 {
797  LWGEOM *lwg;
798 
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.
GSERIALIZED * gserialized_from_lwgeom(LWGEOM *geom, size_t *size)
Allocate a new GSERIALIZED from an LWGEOM.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
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
uint8_t flags
Definition: liblwgeom.h:400

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().

Here is the call graph for this function:
Here is the caller graph for this function: