PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ LWGEOM_asGeoJson_old()

Datum LWGEOM_asGeoJson_old ( PG_FUNCTION_ARGS  )

Definition at line 388 of file lwgeom_export.c.

References LWGEOM_asGeoJson(), and PG_FUNCTION_INFO_V1().

Referenced by LWGEOM_asKML().

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