Hi all,<br><br>I have this wfs layer that has more than 17,000/- points. This is causing the browser problems. So I thought that i could cut the shape file and made smaller shape files.<br>I was trying to dynamically load wfs layer via the featureType property.<br>
<br>I have the layer<br><br>var state= new OpenLayers.Layer.Vector("Bangalore Rural", {<br> strategies: [new OpenLayers.Strategy.BBOX()],<br> filter:"",<br> protocol: new OpenLayers.Protocol.WFS({<br>
version: "1.1.0",<br> url: "<a href="http://Aparna:8081/geoserver/wfs">http://Aparna:8081/geoserver/wfs</a>",<br> <br> featureType: "",<br> featureNS: "<a href="http://opengeo.org/India">http://opengeo.org/India</a>"<br>
})<br> <br> });<br><br>and when the user selects a checkbox i want to load a wfs layer<br><br>this is what i tried<br><br>map.layers[2].protocol.featureType="k_220";<br>map.layers[2].refresh({force:true});<br>
<br>but i am getting this error<br><br><pre><font size="4"><code class="wrappedText focusRow"><?xml version="1.0" encoding="UTF-8"?>
</code><code class="wrappedText focusRow"><ows:ExceptionReport version="1.0.0"
</code><code class="wrappedText focusRow"> xsi:schemaLocation="<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a> <a href="http://aparna:8081/geoserver/schemas/ows/1.0.0/owsExceptionReport">http://aparna:8081/geoserver/schemas/ows/1.0.0/owsExceptionReport</a></code><code class="wrappedText focusRow">.xsd"
</code><code class="wrappedText focusRow"> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:ows="<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>">
</code><code class="wrappedText focusRow"> <ows:Exception exceptionCode="NoApplicableCode">
</code><code class="wrappedText focusRow"> <ows:ExceptionText>Could not locate {<a href="http://opengeo.org/India">http://opengeo.org/India</a>} in catalog.</ows:ExceptionText>
</code><code class="wrappedText focusRow"> </ows:Exception>
</code><code class="wrappedText focusRow"></ows:ExceptionReport><br><br></code></font></pre><br>Any Ideas anyone?<br><br>Thanks,<br>Aparna<br>