: decide if we need outtermost tags, this one was just a copy from gml so is wrong
763 #ifdef PGIS_X3D_OUTERMOST_TAGS 766 ptr += sprintf(ptr,
"<%sMultiGeometry srsName=\"%s\">", defid, srs);
770 ptr += sprintf(ptr,
"<%sMultiGeometry>", defid);
774 for (i=0; i<col->
ngeoms; i++)
776 subgeom = col->
geoms[i];
777 ptr += sprintf(ptr,
"<Shape%s>", defid);
808 lwerror(
"asx3d3_collection_buf: unknown geometry type");
810 ptr += printf(ptr,
"</Shape>");
814 #ifdef PGIS_X3D_OUTERMOST_TAGS 815 ptr += sprintf(ptr,
"</%sMultiGeometry>", defid);
static size_t asx3d3_collection_buf(const LWCOLLECTION *col, char *srs, char *output, int precision, int opts, const char *defid)
static size_t asx3d3_multi_buf(const LWCOLLECTION *col, char *srs, char *output, int precision, int opts, const char *defid)
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
#define POLYHEDRALSURFACETYPE
static size_t asx3d3_tin_buf(const LWTIN *tin, char *srs, char *output, int precision, int opts, const char *defid)
static size_t asx3d3_point_buf(const LWPOINT *point, char *srs, char *output, int precision, int opts, const char *defid)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static size_t asx3d3_poly_buf(const LWPOLY *poly, char *srs, char *output, int precision, int opts, int is_patch, const char *defid)
Compute the X3D coordinates of the polygon.
static size_t asx3d3_line_buf(const LWLINE *line, char *srs, char *output, int precision, int opts, const char *defid)
static size_t asx3d3_psurface_buf(const LWPSURFACE *psur, char *srs, char *output, int precision, int opts, const char *defid)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.