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

◆ do_geojson_test()

static void do_geojson_test ( char *  in,
char *  out,
char *  srs,
int  precision,
int  has_bbox 
)
static

Definition at line 20 of file cu_out_geojson.c.

21{
23 lwvarlena_t *v = lwgeom_to_geojson(g, srs, precision, has_bbox);
24
26
27 lwgeom_free(g);
28 lwfree(v);
29}
static uint8_t precision
Definition cu_in_twkb.c:25
#define ASSERT_VARLENA_EQUAL(v, s)
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2149
lwvarlena_t * lwgeom_to_geojson(const LWGEOM *geo, const char *srs, int precision, int has_bbox)
Takes a GEOMETRY and returns a GeoJson representation.
void lwfree(void *mem)
Definition lwutil.c:248
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition lwin_wkt.c:940

References ASSERT_VARLENA_EQUAL, LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_geojson(), and precision.

Referenced by out_geojson_test_bbox(), out_geojson_test_dims(), out_geojson_test_geoms(), out_geojson_test_precision(), and out_geojson_test_srid().

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