Ben,

Thank you very much for your reply.  Below is the portion of my code used to 
make the request:

var filter = new OpenLayers.Filter.Comparison({
                type: OpenLayers.Filter.Comparison.EQUAL_TO,
                property: 'myproperty',
                value: ‘myvalue’
  });
wfsProtocol = new OpenLayers.Protocol.WFS({
                version: "1.1.0",
                url: "http://myserver:8080/geoserver/mystore/wfs";,
                featureType: "mylayer", //name of the geoserver layer
                featureNS: "mystore", //name of the geoserver store
                geometryName: "the_geom",
                srsName: "EPSG:4326",
                scope: strategy
});
var strategy = new OpenLayers.Strategy.Fixed();
var response = wfsProtocol.read({
                filter: filter,
                callback: processWFSQuery
});
function processWFSQuery(response) {
try {
                                var gmlParser = new OpenLayers.Format.GML.v3();
                                var features = 
gmlParser.read(response.priv.responseXML);
                                vectorLayer.destroyFeatures();
                                if(features.length > 0) {
                                                for(var i = 0; i < 
features.length; i++) {
                                                                var feature = 
features[i];
                                                                
feature.geometry.transform(new 
OpenLayers.Projection('EPSG:4326'),this.map.getProjectionObject());
                                                                
vectorLayer.addFeatures(feature);
                                                }
                                layextent = vectorLayer.getDataExtent();
                                map.zoomToExtent(layextent);
                                }else {
                                                alert("Not found!");
                                                if (popup){
                                                                popup.destroy();
                                                }
                                }
                } catch(e) {
                                alert("Error: " + e);
                }
}

If you need additional information, please let me know.  I appreciate your help.

Thanks,

Jerome Wendell

-----Original Message-----
From: Ben Caradoc-Davies [mailto:[email protected]] 
Sent: Thursday, April 11, 2013 9:31 PM
To: [email protected]
Cc: [email protected]
Subject: Re: [Geoserver-users] Whitespace in Value Passed to Filter

Jerome,

can you please provide us with the exact request including filter? Note that if 
this is a GET request, the path must be correctly encoded.

Kind regards,
Ben.

--
Ben Caradoc-Davies <[email protected]> Software Engineer CSIRO Earth 
Science and Resource Engineering Australian Resources Research Centre


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to