[OpenLayers-Users] too many features in a wfs layers

Aparna aparna.mookerjee at gmail.com
Wed May 16 05:42:46 PDT 2012


Hi all,

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.
I was trying to dynamically load wfs layer via the featureType property.

I have the layer

var state= new OpenLayers.Layer.Vector("Bangalore Rural", {
        strategies: [new OpenLayers.Strategy.BBOX()],
        filter:"",
        protocol: new OpenLayers.Protocol.WFS({
            version: "1.1.0",
            url: "http://Aparna:8081/geoserver/wfs",

            featureType: "",
            featureNS: "http://opengeo.org/India"
        })

    });

and when the user selects a checkbox i want to load a wfs layer

this is what i tried

map.layers[2].protocol.featureType="k_220";
map.layers[2].refresh({force:true});

but i am getting this error

<?xml version="1.0" encoding="UTF-8"?><ows:ExceptionReport
version="1.0.0"  xsi:schemaLocation="http://www.opengis.net/ows
http://aparna:8081/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ows="http://www.opengis.net/ows">  <ows:Exception
exceptionCode="NoApplicableCode">    <ows:ExceptionText>Could not
locate {http://opengeo.org/India} in catalog.</ows:ExceptionText>
</ows:Exception></ows:ExceptionReport>


Any Ideas anyone?

Thanks,
Aparna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120516/eb8dd8a1/attachment.html


More information about the Users mailing list