677 StringInfo buf = (StringInfo) PG_GETARG_POINTER(0);
678 int32 geog_typmod = -1;
682 if ( (PG_NARGS()>2) && (!PG_ARGISNULL(2)) ) {
683 geog_typmod = PG_GETARG_INT32(2);
689 srid_is_latlong(fcinfo, lwgeom->
srid);
697 buf->cursor = buf->len;
699 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...