*
**********************************************************************
* $Log$
+ * Revision 1.48 2004/07/23 21:24:33 strk
+ * Added postgis_proj_version()
+ *
* Revision 1.47 2004/07/22 16:20:09 strk
* Added postgis_lib_version() and postgis_geos_version()
*
Datum fluffType(PG_FUNCTION_ARGS);
Datum postgis_lib_version(PG_FUNCTION_ARGS);
Datum postgis_geos_version(PG_FUNCTION_ARGS);
+Datum postgis_proj_version(PG_FUNCTION_ARGS);
/*--------------------------------------------------------------------
* Useful floating point utilities and constants.
AS '@MODULE_FILENAME@'
LANGUAGE 'C';
+CREATEFUNCTION postgis_proj_version() RETURNS cstring
+ AS '@MODULE_FILENAME@'
+ LANGUAGE 'C';
+
CREATEFUNCTION postgis_version() RETURNS text
AS 'SELECT \'@POSTGIS_VERSION@\'::text AS version'
LANGUAGE 'sql';
*
**********************************************************************
* $Log$
+ * Revision 1.18 2004/07/23 21:24:33 strk
+ * Added postgis_proj_version()
+ *
* Revision 1.17 2004/07/22 16:20:10 strk
* Added postgis_lib_version() and postgis_geos_version()
*
PG_RETURN_POINTER(result); // new geometry
}
+PG_FUNCTION_INFO_V1(postgis_proj_version);
+Datum postgis_proj_version(PG_FUNCTION_ARGS)
+{
+ char *result = pstrdup(pj_get_release());
+ PG_RETURN_CSTRING(result);
+}
+
#else // ! defined USE_PROJ
//PG_RETURN_POINTER(result);
PG_RETURN_NULL();
}
+
+PG_FUNCTION_INFO_V1(postgis_proj_version);
+Datum postgis_proj_version(PG_FUNCTION_ARGS)
+{
+ PG_RETURN_NULL();
+}
#endif