708 size_t defidlen = strlen(defid);
717 for (i=0; i<col->
ngeoms; i++)
719 subgeom = col->
geoms[i];
720 size += (
sizeof(
"<Shape />") + defidlen ) * 2;
746 lwerror(
"asx3d3_collection_size: unknown geometry type");
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
#define POLYHEDRALSURFACETYPE
static size_t asx3d3_poly_size(const LWPOLY *poly, char *srs, int precision, int opts, const char *defid)
Compute the string space needed for the IndexedFaceSet representation of the polygon.
static size_t asx3d3_tin_size(const LWTIN *tin, char *srs, int precision, int opts, const char *defid)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
static size_t asx3d3_psurface_size(const LWPSURFACE *psur, char *srs, int precision, int opts, const char *defid)
static size_t asx3d3_point_size(const LWPOINT *point, char *srs, int precision, int opts, const char *defid)
defid is the id of the coordinate can be used to hold other elements DEF='abc' transform='' etc...
static size_t asx3d3_line_size(const LWLINE *line, char *srs, int precision, int opts, const char *defid)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static size_t asx3d3_multi_size(const LWCOLLECTION *col, char *srs, int precisioSn, int opts, const char *defid)
Compute max size required for X3D version of this inspected geometry.