PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ asgeojson_poly()

static void asgeojson_poly ( stringbuffer_t sb,
const LWPOLY poly,
const geojson_opts opts 
)
static

Polygon Geometry.

Definition at line 222 of file lwout_geojson.c.

223 {
224  stringbuffer_append_len(sb, "{\"type\":\"Polygon\",", 18);
225  asgeojson_srs(sb, opts);
226  asgeojson_bbox(sb, opts);
228  stringbuffer_append_char(sb, '}');
229  return;
230 }
static void asgeojson_srs(stringbuffer_t *sb, const geojson_opts *opts)
Definition: lwout_geojson.c:95
static void asgeojson_bbox(stringbuffer_t *sb, const geojson_opts *opts)
static void asgeojson_poly_coords(stringbuffer_t *sb, const LWPOLY *poly, const geojson_opts *opts, int tagged)
@ geojson_tagged
Definition: lwout_geojson.c:42
opts
Definition: ovdump.py:45
static void stringbuffer_append_char(stringbuffer_t *s, char c)
Definition: stringbuffer.h:119
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.
Definition: stringbuffer.h:93

References asgeojson_bbox(), asgeojson_poly_coords(), asgeojson_srs(), geojson_tagged, ovdump::opts, stringbuffer_append_char(), and stringbuffer_append_len().

Referenced by asgeojson_geometry().

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