PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ LWGEOM_asGeoJson_old()

Datum LWGEOM_asGeoJson_old ( PG_FUNCTION_ARGS  )

Definition at line 370 of file lwgeom_export.c.

References LWGEOM_asGeoJson(), and PG_FUNCTION_INFO_V1().

Referenced by LWGEOM_asKML().

371 {
372  switch( PG_NARGS() )
373  {
374  case 2:
375  return DirectFunctionCall1(LWGEOM_asGeoJson, PG_GETARG_DATUM(1));
376  case 3:
377  return DirectFunctionCall2(LWGEOM_asGeoJson, PG_GETARG_DATUM(1), PG_GETARG_DATUM(2));
378  case 4:
379  return DirectFunctionCall3(LWGEOM_asGeoJson, PG_GETARG_DATUM(1), PG_GETARG_DATUM(2), PG_GETARG_DATUM(3));
380  default:
381  elog(ERROR, "bad call in %s", __func__);
382  }
383  PG_RETURN_NULL();
384 }
Datum LWGEOM_asGeoJson(PG_FUNCTION_ARGS)
Here is the call graph for this function:
Here is the caller graph for this function: