Use Polypoint2D instead
Definition at line 437 of file lwout_x3d.c.
References asx3d3_line_coords(), asx3d3_mline_coordindex(), asx3d3_mpoly_coordindex(), asx3d3_point_buf(), asx3d3_poly_buf(), LWCOLLECTION::flags, FLAGS_GET_Z, LWCOLLECTION::geoms, LINETYPE, LW_X3D_FLIP_XY, lwerror(), lwtype_name(), MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, POINTTYPE, POLYGONTYPE, LWGEOM::type, LWMPOLY::type, LWCOLLECTION::type, and X3D_USE_GEOCOORDS.
Referenced by asx3d3_collection_buf(), and asx3d3_multi().
452 x3dtype =
"PointSet";
453 if ( dimension == 2 ){
454 x3dtype =
"Polypoint2D";
455 ptr += sprintf(ptr,
"<%s %s point='", x3dtype, defid);
458 ptr += sprintf(ptr,
"<%s %s>", x3dtype, defid);
462 x3dtype =
"IndexedLineSet";
463 ptr += sprintf(ptr,
"<%s %s coordIndex='", x3dtype, defid);
465 ptr += sprintf(ptr,
"'>");
468 x3dtype =
"IndexedFaceSet";
469 ptr += sprintf(ptr,
"<%s %s convex='false' coordIndex='", x3dtype, defid);
471 ptr += sprintf(ptr,
"'>");
479 ptr += sprintf(ptr,
"<GeoCoordinate geoSystem='\"GD\" \"WE\" \"%s\"' point='", ((
opts &
LW_X3D_FLIP_XY) ?
"latitude_first" :
"longitude_first") );
481 ptr += sprintf(ptr,
"<Coordinate point='");
484 for (i=0; i<col->
ngeoms; i++)
486 subgeom = col->
geoms[i];
490 ptr += sprintf(ptr,
" ");
495 ptr += sprintf(ptr,
" ");
500 ptr += sprintf(ptr,
" ");
506 ptr += sprintf(ptr,
"' /></%s>", x3dtype);
508 else { ptr += sprintf(ptr,
"' />"); }
#define X3D_USE_GEOCOORDS(x)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
static size_t asx3d3_point_buf(const LWPOINT *point, char *srs, char *output, int precision, int opts, const char *defid)
static size_t asx3d3_line_coords(const LWLINE *line, char *output, int precision, int opts)
#define LW_X3D_FLIP_XY
Macros for specifying X3D options.
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
static size_t asx3d3_mpoly_coordindex(const LWMPOLY *psur, char *output)
static size_t asx3d3_mline_coordindex(const LWMLINE *mgeom, char *output)
#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.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.