-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I try to send some vector data into geoserver WPS interface (2.2
snapshot, rev 16632)
I try to send the data as reference or directly, geoserver does not
like them and
Could anybody tell me, how both request types should look like or if
the input data are somehow corrupted? They are produced by OpenLayers
(direct input) and MapServer (Reference).
As Reference input:
<wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0"
version="1.0.0" service="WPS"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">JTS:area</ows:Identifier><wps:DataInputs><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">geom</ows:Identifier><wps:Data/><wps:Reference
mimeType="text/xml; subtype=gml/3.1.1"
xlink:href="http://briseide.ccss.cz/cgi-bin/owsproxy.cgi?map=/var/www/localhost/htdocs/tmp/WFS-8066ca5a58f48c499f919d45529596c0wpD64C/mapfile.map&owsService=WFS&owsUrl=http://bnhelp.cz/ows/crwfs&VERSION=1.1.0&SERVICE=WFS&REQUEST=GetFeature&SRSNAME=urn:ogc:def:crs:EPSG::3035&TYPENAME=kraje&BBOX=-49543.523624,1128107.277079,8769896.158324,5846507.506921"
xmlns:xlink="http://www.w3.org/1999/xlink"/></wps:Input></wps:DataInputs><wps:ResponseForm><wps:ResponseDocument><wps:Output><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">result</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1"/><ows:Abstract
xmlns:ows="http://www.opengis.net/ows/1.1"/></wps:Output></wps:ResponseDocument></wps:ResponseForm></wps:Execute>
Result: Could not convert
org.geotools.feature.DefaultFeatureCollection@anonymised.com to target type
com.vividsolutions.jts.geom.Geometry
Direct input
<wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0"
version="1.0.0" service="WPS"
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">JTS:area</ows:Identifier><wps:DataInputs><wps:Input><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">geom</ows:Identifier><wps:Data><wps:ComplexData
mimeType="text/xml; subtype=gml/3.1.1"><gml:featureMembers
xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/gml
http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"><feature:null
xmlns:feature="http://www.opengis.net/gml"><feature:geometry><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>3358492\.0671158
4520866.085022 2714672.9703337 4009338.583469 2511825.8576489
4776629.8357984 2864603.4449268 5217601.8198958 3190922.7131588
5323435.0960791 3358492.0671158
4520866.085022</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></feature:geometry></feature:null></gml:featureMembers></wps:ComplexData></wps:Data></wps:Input></wps:DataInputs><wps:ResponseForm><wps:ResponseDocument><wps:Output><ows:Identifier
xmlns:ows="http://www.opengis.net/ows/1.1">result</ows:Identifier><ows:Title
xmlns:ows="http://www.opengis.net/ows/1.1"/><ows:Abstract
xmlns:ows="http://www.opengis.net/ows/1.1"/></wps:Output></wps:ResponseDocument></wps:ResponseForm></wps:Execute>
Result: Could not convert
org.geotools.feature.DefaultFeatureCollection@anonymised.com to target type
com.vividsolutions.jts.geom.Geometry
Thanks
Jachym
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk7uZyIACgkQyKt0uAjU4I/z7QCgoaLUpYXyb3FGjaPUcraqZpeo
3G8Anj3s3MZ2/g+WUB5R2lfKPA5f2W/v
=SfsT
-----END PGP SIGNATURE-----