556 StringInfo buf = (StringInfo) PG_GETARG_POINTER(0);
557 int32 geog_typmod = -1;
561 if ( (PG_NARGS()>2) && (!PG_ARGISNULL(2)) ) {
562 geog_typmod = PG_GETARG_INT32(2);
568 srid_check_latlong(lwgeom->
srid);
576 buf->cursor = buf->len;
578 PG_RETURN_POINTER(g_ser);
GSERIALIZED * gserialized_geography_from_lwgeom(LWGEOM *lwgeom, int32 geog_typmod)
#define LW_PARSER_CHECK_ALL
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_wkb(const uint8_t *wkb, const size_t wkb_size, const char check)
WKB inputs must have a declared size, to prevent malformed WKB from reading off the end of the memory...