PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ LWGEOM_asGeoJson_old()

Datum LWGEOM_asGeoJson_old ( PG_FUNCTION_ARGS  )

Definition at line 397 of file lwgeom_export.c.

References LWGEOM_asGeoJson(), and PG_FUNCTION_INFO_V1().

Referenced by LWGEOM_asKML().

398 {
399  switch( PG_NARGS() )
400  {
401  case 2:
402  return DirectFunctionCall1(LWGEOM_asGeoJson, PG_GETARG_DATUM(1));
403  case 3:
404  return DirectFunctionCall2(LWGEOM_asGeoJson, PG_GETARG_DATUM(1), PG_GETARG_DATUM(2));
405  case 4:
406  return DirectFunctionCall3(LWGEOM_asGeoJson, PG_GETARG_DATUM(1), PG_GETARG_DATUM(2), PG_GETARG_DATUM(3));
407  default:
408  elog(ERROR, "bad call in %s", __func__);
409  }
410  PG_RETURN_NULL();
411 }
Datum LWGEOM_asGeoJson(PG_FUNCTION_ARGS)
Here is the call graph for this function:
Here is the caller graph for this function: