PostGIS  3.6.1dev-r@@SVN_REVISION@@

◆ postgis_proj_compiled_version()

Datum postgis_proj_compiled_version ( PG_FUNCTION_ARGS  )

Definition at line 235 of file postgis/lwgeom_transform.c.

236 {
237  static char ver[64];
238  text *result;
239  sprintf(
240  ver,
241  "%d.%d.%d",
242  (POSTGIS_PROJ_VERSION/10000),
243  ((POSTGIS_PROJ_VERSION%10000)/100),
244  ((POSTGIS_PROJ_VERSION)%100)
245  );
246 
247  result = cstring_to_text(ver);
248  PG_RETURN_POINTER(result);
249 }
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition: cu_print.c:267
#define POSTGIS_PROJ_VERSION
Definition: sqldefines.h:12

References POSTGIS_PROJ_VERSION, and result.