PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void do_gml2_extent_test ( char *  in,
char *  out,
char *  srs,
double  precision,
char *  prefix 
)
static

Definition at line 171 of file cu_out_gml.c.

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

Referenced by out_gml2_extent().

173 {
174  LWGEOM *g;
175  char *h;
176 
178  h = lwgeom_extent_to_gml2(g, srs, precision, prefix);
179  if ( ! h ) h = strdup(cu_error_msg);
180 
181  if (strcmp(h, out))
182  fprintf(stderr, "\nEXT GML 2 - In: %s\nObt: %s\nExp: %s\n",
183  in, h, out);
184  CU_ASSERT_STRING_EQUAL(out, h);
186 
187  lwfree(h);
188  lwgeom_free(g);
189 }
void lwfree(void *mem)
Definition: lwutil.c:190
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:844
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:1706
void cu_error_msg_reset()
char * lwgeom_extent_to_gml2(const LWGEOM *geom, const char *srs, int precision, const char *prefix)
Definition: lwout_gml.c:178
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]

Here is the call graph for this function:

Here is the caller graph for this function: