PostGIS  2.4.9dev-r@@SVN_REVISION@@
lwout_x3d.c File Reference
#include <string.h>
#include "liblwgeom_internal.h"
Include dependency graph for lwout_x3d.c:

Go to the source code of this file.

Functions

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. More...
 
static char * asx3d3_point (const LWPOINT *point, char *srs, int precision, int opts, const char *defid)
 
static size_t asx3d3_line_size (const LWLINE *line, char *srs, int precision, int opts, const char *defid)
 
static char * asx3d3_line (const LWLINE *line, char *srs, int precision, int opts, const char *defid)
 Return the linestring as an X3D LineSet. More...
 
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. More...
 
static size_t asx3d3_triangle_size (const LWTRIANGLE *triangle, char *srs, int precision, int opts, const char *defid)
 
static char * asx3d3_triangle (const LWTRIANGLE *triangle, char *srs, int precision, int opts, const char *defid)
 
static size_t asx3d3_multi_size (const LWCOLLECTION *col, char *srs, int precision, int opts, const char *defid)
 Compute max size required for X3D version of this inspected geometry. More...
 
static char * asx3d3_multi (const LWCOLLECTION *col, char *srs, int precision, int opts, const char *defid)
 
static char * asx3d3_psurface (const LWPSURFACE *psur, char *srs, int precision, int opts, const char *defid)
 
static char * asx3d3_tin (const LWTIN *tin, char *srs, int precision, int opts, const char *defid)
 
static size_t asx3d3_collection_size (const LWCOLLECTION *col, char *srs, int precision, int opts, const char *defid)
 
static char * asx3d3_collection (const LWCOLLECTION *col, char *srs, int precision, int opts, const char *defid)
 
static size_t pointArray_toX3D3 (POINTARRAY *pa, char *output, int precision, int opts, int is_closed)
 In X3D3, coordinates are separated by a space separator. More...
 
static size_t pointArray_X3Dsize (POINTARRAY *pa, int precision)
 Returns maximum size of rendered pointarray in bytes. More...
 
char * lwgeom_to_x3d3 (const LWGEOM *geom, char *srs, 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)
 
static size_t asx3d3_line_buf (const LWLINE *line, 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)
 
static size_t asx3d3_mline_coordindex (const LWMLINE *mgeom, char *output)
 
static size_t asx3d3_mpoly_coordindex (const LWMPOLY *psur, char *output)
 
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. More...
 
static size_t asx3d3_triangle_buf (const LWTRIANGLE *triangle, 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)
 
static size_t asx3d3_psurface_size (const LWPSURFACE *psur, char *srs, 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)
 
static size_t asx3d3_tin_size (const LWTIN *tin, char *srs, int precision, int opts, const char *defid)
 
static size_t asx3d3_tin_buf (const LWTIN *tin, char *srs, char *output, int precision, int opts, const char *defid)
 
static size_t asx3d3_collection_buf (const LWCOLLECTION *col, char *srs, char *output, int precision, int opts, const char *defid)