PostGIS  2.4.9dev-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.

References cu_error_msg, cu_error_msg_reset(), LW_PARSER_CHECK_NONE, lwfree(), lwgeom_extent_to_gml3(), lwgeom_free(), and lwgeom_from_wkt().

Referenced by out_gml3_extent().

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 }
void lwfree(void *mem)
Definition: lwutil.c:244
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1099
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2013
void cu_error_msg_reset()
uint8_t precision
Definition: cu_in_twkb.c:25
char * lwgeom_extent_to_gml3(const LWGEOM *geom, const char *srs, int precision, int opts, const char *prefix)
Definition: lwout_gml.c:213
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]
opts
Definition: ovdump.py:44
Here is the call graph for this function:
Here is the caller graph for this function: