X3D research
What the code needs to do:
- form with query from http://www.epa.gov/aqspubl1/annual_summary.html, with some choices hard-coded where necessary - PHP
- retrieve data, store in multi-dimentional arrays - AJAX PHP
- for each monitor id, submit form from http://www.epa.gov/aqspubl1/monitor.html and http://www.epa.gov/aqspubl1/site.html to get longitude and latitude of the sensors - AJAX PHP
(This can be done to return data for all monitors in the state being queried) - combine data from both searches, so that we end up with an array of monitor_id => { mean value (or max depending on original query), latitude, longitude }
- output X3D file with each element in the above arays represented by a cylander with position (latitude, longitude) and height (value) and diameter (some appropriate arbitrary amount) - PHP
Since AJAX does not allow cross-domain queries, I will be using a buffered PHP include instead
My version of the annual summary form (non-operational): form.php
The operational form (opens in a new window, hosted elsewhere): form.php
Plot of all the monitor sites in Oregon: sites_x3d.php
Test data instance: test_x3d.php
Technical report: X3D Proof-of-Concept Technical Report (pdf)
Video demonstration: X3D Demo (avi, 34MB)
To view the X3D files, you will need an X3D browser plug-in or standalone viewer.
- A list of X3D viewers and plug-ins recomended by the W3D Consortium (mostly for Windows platforms).
- A standalone X3D viewer that comes with a Safari plugin (for Mac OS X platforms).