PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ do_gml3_extent_test()

static void do_gml3_extent_test ( char *  in,
char *  out,
char *  srs,
double  precision,
int  opts,
char *  prefix 
)
static

Definition at line 170 of file cu_out_gml.c.

172 {
173  LWGEOM *g;
174  char *h;
175 
177  h = lwgeom_extent_to_gml3(g, srs, precision, opts, prefix);
178  if ( ! h ) h = strdup(cu_error_msg);
179 
180  if (strcmp(h, out))
181  fprintf(stderr, "\nEXT GML 3 - In: %s\nObt: %s\nExp: %s\n",
182  in, h, out);
183  CU_ASSERT_STRING_EQUAL(out, h);
185 
186  lwfree(h);
187  lwgeom_free(g);
188 }
static uint8_t precision
Definition: cu_in_twkb.c:25
void cu_error_msg_reset()
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
char * lwgeom_extent_to_gml3(const LWGEOM *geom, const char *srs, int precision, int opts, const char *prefix)
Definition: lwout_gml.c:213
void lwfree(void *mem)
Definition: lwutil.c:244
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
opts
Definition: ovdump.py:44

References cu_error_msg, cu_error_msg_reset(), LW_PARSER_CHECK_NONE, lwfree(), lwgeom_extent_to_gml3(), lwgeom_free(), lwgeom_from_wkt(), ovdump::opts, and precision.

Referenced by out_gml3_extent().

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