PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ LWGEOM_asGeoJson_old()

Datum LWGEOM_asGeoJson_old ( PG_FUNCTION_ARGS  )

Definition at line 385 of file lwgeom_export.c.

References LWGEOM_asGeoJson(), and PG_FUNCTION_INFO_V1().

Referenced by LWGEOM_asKML().

386 {
387  switch( PG_NARGS() )
388  {
389  case 2:
390  return DirectFunctionCall1(LWGEOM_asGeoJson, PG_GETARG_DATUM(1));
391  case 3:
392  return DirectFunctionCall2(LWGEOM_asGeoJson, PG_GETARG_DATUM(1), PG_GETARG_DATUM(2));
393  case 4:
394  return DirectFunctionCall3(LWGEOM_asGeoJson, PG_GETARG_DATUM(1), PG_GETARG_DATUM(2), PG_GETARG_DATUM(3));
395  default:
396  elog(ERROR, "bad call in %s", __func__);
397  }
398  PG_RETURN_NULL();
399 }
Datum LWGEOM_asGeoJson(PG_FUNCTION_ARGS)
Here is the call graph for this function:
Here is the caller graph for this function: