[Zoo-discuss] ProcessOutput in WPS
truongxuan quang
truongxuanquang at yahoo.com
Tue Dec 3 08:10:38 PST 2013
I am happy to have a chance to implement some WPSs with ZOO-project again. I have some question about ProcessOutputs, as what I did before I am used to define output data in *.zcfg file as an example bellow for earthquake shake map:
<intput>
<output>
<ows:name>
<LiteralData>….
<ows:point>
<ComplexData>….
<ows:location>
<LiteralData>….
<ows:shape>
<ComplexData>….
<ows: intensity>
<LiteralData>….
<date>
<LiteralData>….
Execute our request
http://localhost/cgi-bin/zoo_loader.cgi?ServiceProvider=&metapath=&Service=WPS&Request=Execute&Version=1.0.0&Identifier=Earthquake&DataInputs=a=significant_earthquake
We can get something likes a quote of responding [type 1] from WPS request:
<ows:Identifier>NAME</ows:Identifier>
[‘name1’, [name2], [name3]……………..name[n]
<ows:Identifier>Point</ows:Identifier>
[[x1,y2], [x2,y2], [x3, y3]…………….[xn,yn]]
…
<ows:Identifier>date</ows:Identifier>
[date1, date2,date3 ,………date_n]
n is number of events (some time n=1 sometime more than 20 etc..)
Above response is fine but In my case I need the structure of response as a list of all event in order as bellow, eg 5 events [type 2]:
<ows:Identifier>name-1<ows:identifier>
…
<ows:Identifier>Point-1<ows:identifier>
….
<ows:Identifier>date-1<ows:identifier>
……………………………
................................
<ows:Identifier>name-5<ows:identifier>
…
<ows:Identifier>Point-5<ows:identifier>
…
<ows:Identifier>date-5<ows:identifier>
Is there anyway to shift from type [1] (all events are describde vertically )to type [2] and (described horizontally )
It seems to be not WPS standard, If you have any ideas/experiences I will be very happy
Many Thanks
TXQuang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20131203/5106611e/attachment-0001.html>
More information about the Zoo-discuss
mailing list