PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ lwgeom_over_gserialized()

static LWGEOM* lwgeom_over_gserialized ( char *  wkt,

Definition at line 789 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().

790 {
791  LWGEOM *lwg;
794  FLAGS_SET_GEODETIC(lwg->flags, 1);
795  *g = gserialized_from_lwgeom(lwg, 0);
796  lwgeom_free(lwg);
797  return lwgeom_from_gserialized(*g);
798 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint8_t flags
Definition: liblwgeom.h:399
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
#define FLAGS_SET_GEODETIC(flags, value)
Definition: liblwgeom.h:148
Definition: liblwgeom.h:2004
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: