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

◆ asgeojson_srs()

static void asgeojson_srs ( stringbuffer_t sb,
const geojson_opts opts 
)
static

Definition at line 95 of file lwout_geojson.c.

96{
97 if (!opts->srs) return;
98 stringbuffer_append_len(sb, "\"crs\":{\"type\":\"name\",", 21);
99 stringbuffer_aprintf(sb, "\"properties\":{\"name\":\"%s\"}},", opts->srs);
100 return;
101}
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.
static void stringbuffer_append_len(stringbuffer_t *s, const char *a, size_t alen)
Append the specified string to the stringbuffer_t using known length.

References stringbuffer_append_len(), and stringbuffer_aprintf().

Referenced by asgeojson_collection(), asgeojson_line(), asgeojson_multiline(), asgeojson_multipoint(), asgeojson_multipolygon(), asgeojson_point(), asgeojson_poly(), and asgeojson_triangle().

Here is the call graph for this function:
Here is the caller graph for this function: