[Pywps-devel] grass online
ivan marchesini
ivan.marchesini at gmail.com
Mon Jan 25 22:11:45 CET 2010
Hi Jachim,
>
> 1) are you using WPS.js from trunk?
No.. it was the one coming with the 3.1.0 stable pyWPS release..
but now I have downloaded the right one from the subversion repository
and the problem is still there...
> 2) does wps.parseExecuteOutput(process.output1); return something, or it
> failes?
these are some parts of my code:
_________________________________
var calculate = function() {
var wps = new OpenLayers.WPS("http://mywpswrapper",
{
onSucceeded : onSucceeded,
onStatusChanged :
onStatusChanged
});
[......]
}
var onSucceeded = function() {
wps.parseExecuteOutput(process,output1);
console.log("CIAO");
mappa.addLayer(output.value);
}
___________________________________
it does nothing!!
it seems that the function "onSucceeded" dooesn't start at all.. (in
fact "CIAO" is not printed)
But if I comment out the onSucceeded function, firebug correclty says
that there's not a "onSuccedeed" defined function
>
> // 3) convert the GML in text form to OpenLayers.Features
> var gmlParser = new OpenLayer.Format.GML();
> vlayer.addFeatures(gmlParser.read(value));
ok.. I don't know really well how to understand if the output value is
in XMLDOM representation but I can check... :-)
here:
http://nopaste.info/cbc11fbd60.html
you can find the file which is created into the wpsoutput dir (the folder
defined into pywps.cfg)... the file is the same arriving to my browser
(I can see it with firebug)
However, before to solve the problem of adding the layer to the map I
still have the problem that onSucceded doesn't work...
How can I do to understand where is the poblem??
many many many thanks...
Ivan
--
Ti prego di cercare di non inviarmi files .dwg, .doc, .xls, .ppt.
Preferisco formati liberi.
Please try to avoid to send me .dwg, .doc, .xls, .ppt files.
I prefer free formats.
http://it.wikipedia.org/wiki/Formato_aperto
http://en.wikipedia.org/wiki/Open_format
Ivan Marchesini
Perugia (Italy)
Socio fondatore GFOSS "Geospatial Free and Open Source Software" http://www.gfoss.it
e-mail: marchesini at unipg.it
ivan.marchesini at gmail.com
fax (home): +39(0)5782830887
jabber: geoivan73 at jabber.org
skype: geoivan73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
firmata digitalmente
Url : http://lists.wald.intevation.org/pipermail/pywps-devel/attachments/20100125/e7900073/attachment.pgp
More information about the Pywps-devel
mailing list