[OpenLayers-Users] WFS-Layer in OpenLayers map

Tobias Kirschke tobias.kirschke at student.afg.hs-anhalt.de
Tue Apr 9 01:03:38 PDT 2013


Hi,

with the following code I can't get a WFS-Layer into my map 
(Proxy-Settings are correct).

...
var demo = new OpenLayers.Layer.Vector("WFS", {
           strategies : [new OpenLayers.Strategy.BBOX()],
           protocol : new OpenLayers.Protocol.WFS({
               version:"1.1.0",
               url : 
"http://www.gfds.sachsen-anhalt.de/ows/ws/wfs/GDI-LSA_LEP_2010_LSA/",
               featureType : "lsa_mlv_lep_vrg_hws_feature",
               featureNS : "lep",
               srsName : "EPSG:900913",
               geometryName: "geom"
           }),
           styleMap: myStyles,
       });
...


In Firebug I get the following informaton:

|<?xml version="1.0" encoding="UTF-8"?>
||<ExceptionReport xmlns="http://www.opengis.net/ows/1.1"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"||  xsi:schemaLocation="http://www.opengis.net/ows/1.1owsExceptionReport.xsd"  version="1.0.0" xml:lang="en"||>
||<Exception exceptionCode="NoApplicableCode">
||<![CDATA[invalid WFS Query-Element]]>
||</Exception>
||</ExceptionReport>|


With my own WFS-URL from Geoserver it runs without problems. Also in 
QGIS it runs without problems.  Any ideas? Thanks.

Tobias



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130409/dcc7b108/attachment.html>


More information about the Users mailing list