PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t asgml3_tin_buf ( const LWTIN tin,
const char *  srs,
char *  output,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1238 of file lwout_gml.c.

References asgml3_triangle_buf(), LWTIN::geoms, and LWTIN::ngeoms.

Referenced by asgml3_tin().

1239 {
1240  char *ptr;
1241  int i;
1242 
1243  ptr = output;
1244 
1245  /* Open outmost tag */
1246  ptr += sprintf(ptr, "<%sTin", prefix);
1247  if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1248  if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1249  else ptr += sprintf(ptr, "><%strianglePatches>", prefix);
1250 
1251  for (i=0; i<tin->ngeoms; i++)
1252  {
1253  ptr += asgml3_triangle_buf(tin->geoms[i], 0, ptr, precision,
1254  opts, prefix, id);
1255  }
1256 
1257  /* Close outmost tag */
1258  ptr += sprintf(ptr, "</%strianglePatches></%sTin>", prefix, prefix);
1259 
1260  return (ptr-output);
1261 }
int ngeoms
Definition: liblwgeom.h:541
LWTRIANGLE ** geoms
Definition: liblwgeom.h:543
static size_t asgml3_triangle_buf(const LWTRIANGLE *triangle, const char *srs, char *output, int precision, int opts, const char *prefix, const char *id)
Definition: lwout_gml.c:996

Here is the call graph for this function:

Here is the caller graph for this function: