as of today, the Calculator is available in a basic viewer app. The app does not have a header yet, but it does have a GetFeatureInfo button so users can click on the map and get information. Note that this currently only works for layers added through the Add Layers (+) button.
The code is committed to master. To see it in action, pull the latest from git, run risiko-install, and navigate to http://localhost:8000/static/calculator/index.html.
None of the code has been refactored so far. I only copied it over from its current location, removed some lint, changed the application specific language files to the gxp structure, and formatted the code so I can see what's going on.
I was not able to do much testing, because I don't have an exposure layer. Where do I get one? Or do I have one aleady and just don't know it? I was able to select a Hazard in the Impact Calculator, but I don't see any Exposure. And the api returns me an empty object for the exposure category: {"objects": []}. Any advice on this?
Feedback welcome.
Andreas.
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
risiko-activate
risiko-start
risiko-upload risiko_demo_data
I followed this readme and uploaded the demo data like instructed, but I didn't get any exposure layers with that.
Andreas.
Andreas has selected a hazard layer, and is not seeing the exposure
layers. We (Ariel and I) are noticing something wrong with our
environments here that is causing many of the tests to fail because of
some problem with keywords (just shoot me now) ... and this is
probably the same problem Andreas is having ... but _your_ machine
does work (ariel just tested now) ... so he is investigating what is
different between the installations and will try to solve it and
re-post the py packages to both amazon and to the local jakarta
machine.
Will send an update soon as we have something to let y'all know
Jeff
fyi, the new font based symbology is all hooked up into the
calculator. See my commits and the screenshot below. *Obviously* need
to work on the actual cartography tomorrow, but nice to see it hooked
in.
https://github.com/AIFDR/riab/commit/b4f06490aca5c1a4c87557f0c955b3d08533ffa2
https://github.com/AIFDR/riab/commit/7757ef2a7f5a9cd6ff561e85d1bdc6153856cdf3
https://skitch.com/ortelius/fqa18/risiko-calculator-geonode
Andreas, any comments on the methodology above are appreciated since
you know much more about SLD than I do.
Jeff
On Thu, Aug 11, 2011 at 5:41 PM, Ole Nielsen
On Thu, Aug 11, 2011 at 5:54 PM, Ole Nielsen
Actual line doesnt matter, just has to be with the rest of the self.xxx calls.
Andreas, lemme know if that makes a difference for you?
Jeff
On Thu, Aug 11, 2011 at 6:03 PM, Ole Nielsen
Andreas.
I haven't really used TTF symbols in SLD so far, but what you did looks sane to me.
Andreas.
unfortunately this does not make a difference. I still get
{"objects": []}
from
http://localhost:8000/api/v1/layers/?category=exposure
Andreas.