PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t asgml3_psurface_buf ( const LWPSURFACE psur,
const char *  srs,
char *  output,
int  precision,
int  opts,
const char *  prefix,
const char *  id 
)
static

Definition at line 1173 of file lwout_gml.c.

References asgml3_poly_buf(), LWPSURFACE::geoms, and LWPSURFACE::ngeoms.

Referenced by asgml3_psurface().

1174 {
1175  char *ptr;
1176  int i;
1177 
1178  ptr = output;
1179 
1180  /* Open outmost tag */
1181  ptr += sprintf(ptr, "<%sPolyhedralSurface", prefix);
1182  if (srs) ptr += sprintf(ptr, " srsName=\"%s\"", srs);
1183  if (id) ptr += sprintf(ptr, " %sid=\"%s\"", prefix, id);
1184  ptr += sprintf(ptr, "><%spolygonPatches>", prefix);
1185 
1186  for (i=0; i<psur->ngeoms; i++)
1187  {
1188  ptr += asgml3_poly_buf(psur->geoms[i], 0, ptr, precision, opts, 1, prefix, id);
1189  }
1190 
1191  /* Close outmost tag */
1192  ptr += sprintf(ptr, "</%spolygonPatches></%sPolyhedralSurface>",
1193  prefix, prefix);
1194 
1195  return (ptr-output);
1196 }
LWPOLY ** geoms
Definition: liblwgeom.h:530
static size_t asgml3_poly_buf(const LWPOLY *poly, const char *srs, char *output, int precision, int opts, int is_patch, const char *prefix, const char *id)
Definition: lwout_gml.c:917
int ngeoms
Definition: liblwgeom.h:528

Here is the call graph for this function:

Here is the caller graph for this function: