PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ postgis_proj_compiled_version()

Datum postgis_proj_compiled_version ( PG_FUNCTION_ARGS  )

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

233 {
234  static char ver[64];
235  text *result;
236  sprintf(
237  ver,
238  "%d.%d.%d",
239  (POSTGIS_PROJ_VERSION/10000),
240  ((POSTGIS_PROJ_VERSION%10000)/100),
241  ((POSTGIS_PROJ_VERSION)%100)
242  );
243 
244  result = cstring_to_text(ver);
245  PG_RETURN_POINTER(result);
246 }
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.