postgisgetX3d from PostGIS Polyhedral SurfaceExample on how to convert PostGIS geometry to X3D format https://en.wikipedia.org/wiki/X3D