hum maybe you should look at <a href="http://www.open3dgis.org/">http://www.open3dgis.org/</a>.<br>this project stores data using Postgis and generate an output in X3D format using a python script.<br>maybe the developers can help you.<br>
<br>best regards,<br clear="all"><br>-- <br>Luigi Castro Cardeles