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

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

770 {
771  LWGEOM *lwg;
772 
774  FLAGS_SET_GEODETIC(lwg->flags, 1);
775  *g = gserialized_from_lwgeom(lwg, 1, 0);
776  lwgeom_free(lwg);
777  return lwgeom_from_gserialized(*g);
778 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint8_t flags
Definition: liblwgeom.h:353
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:844
#define FLAGS_SET_GEODETIC(flags, value)
Definition: liblwgeom.h:115
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1706
GSERIALIZED * gserialized_from_lwgeom(LWGEOM *geom, int is_geodetic, size_t *size)
Allocate a new GSERIALIZED from an LWGEOM.
Definition: g_serialized.c:908

Here is the call graph for this function:

Here is the caller graph for this function: