<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Eric ,<div>my answers follow.</div><div><br></div><div><br><div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>This is great to see a demo!<br><br>I have a couple questions. I don't know WPS, so forgive me if these<br>are dump questions.<br><br>- looking at the DescribeProcess response it looks like the default<br>Execute response output format is "text/xml", though the actual output<br>format  is GeoJSON. Is this me not understanding the DescribeProcess<br>response?<br></div></blockquote><div><br></div><div>The default output format is set to "application/json" currently, even if the process overwrite this value to text/plain (this explains why ZOO Kernel output a text/plain response). </div><br><blockquote type="cite"><div>- IIRC there's not specific mime-type for GeoJSON, could this become a problem?<br></div></blockquote><div><br></div><div>I think also that it will become a problem on the client side when automatic HTML Forms / Tool activation production will be done. The client side won't be able to determine what tool to activate or what input type it have to fill if it can't determine the semantic of an input.</div><div> </div><div>Nevertheless, I wonder about how to bring semantic using WPS for this kind of datatype. We get already semantic for major datatypes. If we consider the schema of a ComplexData Input ("<a href="http://fooa/gml/3.1.0/point.xsd">http://fooa/gml/3.1.0/point.xsd</a>" for intance which means it's a geometry, and a point even, but I don't know an equivalent for others) and for LiterralData also if we use the "ows:reference" (and example here: <a href="http://demo.zoo-project.org/zoo/?Service=WPS&Request=DescribeProcess&Version=1.0.0&Language=en-CA&Identifier=Multiply">http://demo.zoo-project.org/zoo/?Service=WPS&Request=DescribeProcess&Version=1.0.0&Language=en-CA&Identifier=Multiply</a> , where the semantic is that inputs and the output are floats). Nothing to say about BoundingBox :) By the way, BoundingBox is not currently supported by ZOO Kernel.</div><br><blockquote type="cite"><div>- in the demo the feature is provided in input as a href to the<br>appropriate WFS GetFeature request. I'm sure WPS would allow directly<br>sending the feature coordinates in the request. Can you confirm this?<br></div></blockquote><div><br></div>The demo uses an href, so ZOO Kernel will provide the link and the content of the downloaded data to the process which should be run. You can use what ever you want as input datatype until it is supported by the process, and if its mimeType is specified. So you can pass a full XML document rather than the href in the Centroid example. The service can use JSON string as input also. We can use the following urls to test different kind of input type :</div><div><br></div><div>  * json string, specifying "mimeType=application/json" for InputPolygon :</div><div>   * full text  :</div><div><a href="http://demo.zoo-project.org/zoo">http://demo.zoo-project.org/zoo</a>/?request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=InputPolygon={ "type": "Polygon", "coordinates": [ [ [ -115.946617, 41.994698 ], [ -117.017906, 41.994904 ], [ -117.235909, 44.390099 ], [ -117.030975, 49.000000 ], [ -116.062500, 48.999996 ], [ -111.318436, 44.727940 ], [ -111.050789, 44.473396 ], [ -111.045998, 43.515606 ], [ -111.046028, 42.503323 ], [ -111.047951, 41.996265 ], [ -115.946617, 41.994698 ] ] ] }@mimeType=application/json&ResponseDocument=BufferedPolygon</div><div>   * as reference :</div><div><a href="http://demo.zoo-project.org/zoo/?request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=InputPolygon=Reference@xlink:href=http%3A%2F%2Fdemo.zoo-project.org%2Fogr%2Fdemo.json@mimeType=application/json&ResponseDocument=BufferedPolygon">http://demo.zoo-project.org/zoo/?request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=InputPolygon=Reference@xlink:href=http%3A%2F%2Fdemo.zoo-project.org%2Fogr%2Fdemo.json@mimeType=application/json&ResponseDocument=BufferedPolygon</a></div><div><br></div><div> * GML :</div><div><div>   * as reference :</div><div><a href="http://demo.zoo-project.org/zoo/?request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=BufferDistance=1@datatype=float@uom=meter;InputPolygon=Reference@xlink:href=http%3A%2F%2Fdemo.opengeo.org%2Fgeoserver%2Fows%3FSERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dtopp%3Astates%26SRS%3DEPSG%3A4326%26FeatureID%3Dstates.29&RawDataOutput=BufferedPolygon">http://demo.zoo-project.org/zoo/?request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=BufferDistance=1@datatype=float@uom=meter;InputPolygon=Reference@xlink:href=http%3A%2F%2Fdemo.opengeo.org%2Fgeoserver%2Fows%3FSERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dtopp%3Astates%26SRS%3DEPSG%3A4326%26FeatureID%3Dstates.29&RawDataOutput=BufferedPolygon</a></div><div><br></div></div><div>So I confirm, you could pass a JSON string or other kind of data.</div><div><br></div><div><blockquote type="cite"><div><br>Thanks for putting this demo together.<br><br>-- <br>Eric<br></div></blockquote><br></div><div>Regards,</div><br><div>
<div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><span class="Apple-style-span" style="font-size: 12px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span" style="font-size: medium; ">Djay</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span" style="font-size: medium; ">Just a ZOO Monkey</span></div><div><span class="Apple-style-span" style="font-size: medium; "><a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a></span></div></span></div></span></div></div>
</div>

<br></div></body></html>