PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ postgis_proj_version()

Datum postgis_proj_version ( PG_FUNCTION_ARGS  )

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

207{
209
210 PJ_INFO pji = proj_info();
212 stringbuffer_append(&sb, pji.version);
213
214#if POSTGIS_PROJ_VERSION >= 70100
215
217 " NETWORK_ENABLED=%s",
218 proj_context_is_network_enabled(NULL) ? "ON" : "OFF");
219
220 if (proj_context_get_url_endpoint(NULL))
221 stringbuffer_aprintf(&sb, " URL_ENDPOINT=%s", proj_context_get_url_endpoint(NULL));
222
223 if (proj_context_get_user_writable_directory(NULL, 0))
224 stringbuffer_aprintf(&sb, " USER_WRITABLE_DIRECTORY=%s", proj_context_get_user_writable_directory(NULL, 0));
225
226 if (proj_context_get_database_path(NULL))
227 stringbuffer_aprintf(&sb, " DATABASE_PATH=%s", proj_context_get_database_path(NULL));
228
229#endif
230
231 PG_RETURN_POINTER(cstring_to_text(stringbuffer_getstring(&sb)));
232}
int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt,...)
Appends a formatted string to the current string buffer, using the format and argument list provided.
const char * stringbuffer_getstring(stringbuffer_t *s)
Returns a reference to the internal string being managed by the stringbuffer.
void stringbuffer_init(stringbuffer_t *s)
static void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.

References stringbuffer_append(), stringbuffer_aprintf(), stringbuffer_getstring(), and stringbuffer_init().

Here is the call graph for this function: