wps external wfs request

20 views
Skip to first unread message

Samanta

unread,
Sep 10, 2014, 11:09:03 AM9/10/14
to geoser...@googlegroups.com
Buonasera,
sto provando a chiamare in una richiesta wps un wfs esterno, nel seguente modo:

<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instancexmlns="http://www.opengis.net/wps/1.0.0xmlns:wfs="http://www.opengis.net/wfsxmlns:wps="http://www.opengis.net/wps/1.0.0xmlns:ows="http://www.opengis.net/ows/1.1xmlns:gml="http://www.opengis.net/gmlxmlns:ogc="http://www.opengis.net/ogcxmlns:wcs="http://www.opengis.net/wcs/1.1.1xmlns:xlink="http://www.w3.org/1999/xlinkxsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
  <ows:Identifier>gs:Bounds</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>features</ows:Identifier>
      <wps:Reference mimeType="application/wfs-collection-1.0" xlink:href="http://sdi.provincia.bz.it/geoserver/inspire/wfsmethod="POST">
        <wps:Body>
          <![CDATA[<wfs:GetFeature service="WFS" version="1.0.0" 
  outputFormat="GML2" 
  xmlns:inspire="http://sdi.provinz.bz.it/inspire
  xmlns:wfs="http://www.opengis.net/wfs
  xmlns:ogc="http://www.opengis.net/ogc
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
  xsi:schemaLocation="http://www.opengis.net/wfs
                      http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
  <wfs:Query typeName='inspire:inspire_AU.AdministrativeBoundary'>
    </wfs:Query>
</wfs:GetFeature>
]]>
        </wps:Body>
      </wps:Reference>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput>
      <ows:Identifier>bounds</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>

ma quando lo provo ad eseguire ho il seguente errore:

Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to net.opengis.wfs.FeatureCollectionType

Qualcuno sa aiutarmi o ha già avuto questo problema?

Grazie mille!!


Reply all
Reply to author
Forward
0 new messages