PostGIS  2.2.7dev-r@@SVN_REVISION@@
static LWGEOM* lwgeom_over_gserialized ( char *  wkt,
GSERIALIZED **  g 
)
static

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;
792 
794  FLAGS_SET_GEODETIC(lwg->flags, 1);
795  *g = gserialized_from_lwgeom(lwg, 1, 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:381
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1050
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:890
#define FLAGS_SET_GEODETIC(flags, value)
Definition: liblwgeom.h:133
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1869
GSERIALIZED * gserialized_from_lwgeom(LWGEOM *geom, int is_geodetic, size_t *size)
Allocate a new GSERIALIZED from an LWGEOM.
Definition: g_serialized.c:906

Here is the call graph for this function:

Here is the caller graph for this function: