PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ do_gml2_extent_test()

static void do_gml2_extent_test ( char *  in,
char *  out,
char *  srs,
double  precision,
char *  prefix 
)
static

Definition at line 150 of file cu_out_gml.c.

152 {
153  LWGEOM *g;
154  char *h;
155 
157  h = lwgeom_extent_to_gml2(g, srs, precision, prefix);
158  if ( ! h ) h = strdup(cu_error_msg);
159 
160  if (strcmp(h, out))
161  fprintf(stderr, "\nEXT GML 2 - In: %s\nObt: %s\nExp: %s\n",
162  in, h, out);
163  CU_ASSERT_STRING_EQUAL(out, h);
165 
166  lwfree(h);
167  lwgeom_free(g);
168 }
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
void lwfree(void *mem)
Definition: lwutil.c:244
char * lwgeom_extent_to_gml2(const LWGEOM *geom, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:198
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904

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

Referenced by out_gml2_extent().

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