I am trying to WPS import a WFS feature to a local postgis db with this xml:
<?xml version="1.0" encoding="UTF-8"?> <wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"> <ows:Identifier>gs:Import</ows:Identifier> <wps:DataInputs> <wps:Input> <ows:Identifier>features</ows:Identifier> <wps:Reference mimeType="text/xml; subtype=wfs-collection/1.1" xlink:href="http://wfs.plansystem.dk/geoserver/wfs?service=WFS&request=GetFeature&typename=pdk:akt_planramme_v&maxfeatures=100" method="GET"/> </wps:Input> <wps:Input> <ows:Identifier>store</ows:Identifier> <wps:Data> <wps:LiteralData>test1</wps:LiteralData> </wps:Data> </wps:Input> <wps:Input> <ows:Identifier>srs</ows:Identifier> <wps:Data> <wps:LiteralData>EPSG:25832</wps:LiteralData> </wps:Data> </wps:Input> <wps:Input> <ows:Identifier>styleName</ows:Identifier> <wps:Data> <wps:LiteralData>polygon</wps:LiteralData> </wps:Data> </wps:Input> </wps:DataInputs> <wps:ResponseForm> <wps:RawDataOutput> <ows:Identifier>layerName</ows:Identifier> </wps:RawDataOutput> </wps:ResponseForm> </wps:Execute> I get this error: <ows:ExceptionReport version="1.1.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://geoserver.cbkort.dk:8680/schemas/ows/1.1.0/owsAll.xsd"> - <ows:Exception exceptionCode="NoApplicableCode"> - <ows:ExceptionText> Process returned with an exception java.lang.ClassCastException: org.geotools.jdbc.JDBCFeatureSource cannot be cast to org.geotools.data.simple.SimpleFeatureStore org.geotools.jdbc.JDBCFeatureSource cannot be cast to org.geotools.data.simple.SimpleFeatureStore </ows:ExceptionText> </ows:Exception> </ows:ExceptionReport> What can I do to solve this problem? -- Med venlig hilsen Martin Bjærge Jensen ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
