283{
284 char *x3dtype;
285 uint32_t i;
286 int dimension=2;
287
290 x3dtype="";
291
292
294 {
296 x3dtype = "PointSet";
297 if ( dimension == 2 ){
298 x3dtype = "Polypoint2D";
300 }
301 else {
303 }
304 break;
306 x3dtype = "IndexedLineSet";
310 break;
312 x3dtype = "IndexedFaceSet";
316 break;
317 default:
319 return 0;
320 }
321 if (dimension == 3){
324 else
326 }
327
328 for (i=0; i<col->
ngeoms; i++)
329 {
330 subgeom = col->
geoms[i];
332 {
335 }
337 {
340 }
342 {
345 }
346 }
347
348
349 if (dimension == 3){
351 }
354
355}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define LW_X3D_FLIP_XY
Macros for specifying X3D options.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_Z(flags)
#define X3D_USE_GEOCOORDS(x)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static int asx3d3_point_sb(const LWPOINT *point, int precision, int opts, __attribute__((__unused__)) const char *defid, stringbuffer_t *sb)
static int asx3d3_poly_sb(const LWPOLY *poly, int precision, int opts, __attribute__((__unused__)) int is_patch, __attribute__((__unused__)) const char *defid, stringbuffer_t *sb)
Compute the X3D coordinates of the polygon and add to string buffer.
static int asx3d3_mpoly_coordindex_sb(const LWMPOLY *psur, stringbuffer_t *sb)
static int asx3d3_line_coords_sb(const LWLINE *line, int precision, int opts, stringbuffer_t *sb)
static int asx3d3_mline_coordindex_sb(const LWMLINE *mgeom, stringbuffer_t *sb)
int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt,...)
Appends a formatted string to the current string buffer, using the format and argument list provided.