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

◆ 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);
227 asgeojson_poly_coords(sb, poly, opts, geojson_tagged);
229 return;
230}
static void asgeojson_srs(stringbuffer_t *sb, const geojson_opts *opts)
static void asgeojson_bbox(stringbuffer_t *sb, const geojson_opts *opts)
@ geojson_tagged
static void asgeojson_poly_coords(stringbuffer_t *sb, const LWPOLY *poly, const geojson_opts *opts, int tagged)
static void stringbuffer_append_char(stringbuffer_t *s, char c)
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 asgeojson_bbox(), asgeojson_poly_coords(), asgeojson_srs(), geojson_tagged, 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: