[Zoo-discuss] can't set valid inputs for zoo services

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Mon Jul 21 08:39:45 PDT 2014


I have installed zoo and successfully running HelloPy exemple.

I built a wps client using this example
http://openlayers.org/dev/examples/wps.html

I'm able to execute HelloPy using this example, but not others C or python 
services available in the zoo trunk.
Using  IntersectionPy I get
[error] ERROR 1: GML Geometry is empty in OGR_G_CreateFromGML()., 

Using Intersection, I get
Unable to run the Service. The message returned back by the Service was 
the following: Unable to parse input geometry for InputEntity1.

Here is my InputEntity1
<wfs:FeatureCollection 
xmlns:wfs="http://www.opengis.net/wfs"><gml:featureMember 
xmlns:gml="http://www.opengis.net/gml"><feature:features 
xmlns:feature="http://mapserver.gis.umn.edu/mapserver" 
fid="OpenLayers_Feature_Vector_83"><feature:geometry><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates 
decimal="." cs="," ts=" ">37.1337890625,42.484130859375 
70.8837890625,64.281005859375 81.4306640625,17.874755859375 
37.1337890625,42.484130859375</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></feature:geometry></feature:features></gml:featureMember></wfs:FeatureCollection>

and InputEntity2
<wfs:FeatureCollection 
xmlns:wfs="http://www.opengis.net/wfs"><gml:featureMember 
xmlns:gml="http://www.opengis.net/gml"><feature:features 
xmlns:feature="http://mapserver.gis.umn.edu/mapserver" 
fid="OpenLayers_Feature_Vector_102"><feature:geometry><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates 
decimal="." cs="," ts=" ">41.3525390625,12.249755859375 
90.5712890625,53.031005859375 96.8994140625,0.999755859375 
41.3525390625,12.249755859375</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></feature:geometry></feature:features></gml:featureMember></wfs:FeatureCollection>

Those Inputs are generated using new OpenLayers.Format.GML.v3().write (I 
also tried using new OpenLayers.Format.GML().write

Both service use text/xml as inputs
Intersection uses schema http://fooa/gml/3.1.0/polygon.xsd
IntersectionPy uses http://schemas.opengis.net/gml/3.1.0/base/feature.xsd

Any help on what/where is the problem?
thanks
steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20140721/d675981a/attachment.html>


More information about the Zoo-discuss mailing list