<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>I figure out that my problem wasn't from namespace option but from WFS version. I just started using WFS 1.1.0 and my old filters where not working anymore, I think it wasn't diplaying anything because I was using HTTP protocol, so I started using WFS protocol and then it was not using my filter, just displaying every features of the layer.<br>I found a patch http://trac.openlayers.org/attachment/ticket/2292/patch_ticket2292_r9686_A3.patch which I might not hav correctly integrated to my openLayers 2.8, so I tried the SVN and now it is working! ...But just for my BBOX filter. When I try a featureId filter or a Comparaison.EQUAL_TO filter, I have different issues (I use a fonction to pass filter to my vector layer so it should theoritically have the same behavour)<br><br>featureId filter:<br><br>filter = new OpenLayers.Filter.FeatureId({<br> fids: tstation.ST102<br> });<br><br>I have in my result<code> <gml:featureMembers/></code>
which means nothing... and I am sure my feature exist, not sure the way to call fids behave the same ? Do I still need featureType.featureId ?<br><br>Comparaison filter:<br><br>filter = new OpenLayers.Filter.Comparison({<br> type: OpenLayers.Filter.Comparison.EQUAL_TO,<br> property: property,<br> value: value<br> });<br><br>I have a <br><br><pre><code> <ows:Exception exceptionCode="NoApplicableCode"><br></code><code> <ows:ExceptionText>java.lang.RuntimeException: Parsing<br></code><code> failed for PropertyName:<br></code><code> java.lang.NullPointerException Parsing failed for<br></code><code> PropertyName: java.lang.NullPointerException null</ows:ExceptionText><br></code><code> </ows:Exception><br><br>but my request do have the </code><br><code><ogc:PropertyName>topp:idespece</ogc:PropertyName><br><br>I don't really know what it might be<br><br>Thanks again,<br>Sylvie<br></code></pre><br><br><hr id="stopSpelling">From: kiki__fiat@hotmail.com<br>To: crschmidt@metacarta.com<br>Date: Sun, 6 Dec 2009 22:04:19 +0000<br>CC: users@openlayers.org<br>Subject: Re: [OpenLayers-Users] Problem with namespace param in        vector        strategy<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
Ok I am sorry it was just a problem of copy/paste... I wouldn't have had any answer with that request...<br><br>namespace:'xmlns(topp=http://www.openplans.org/topp)',<br><br>is my real javascript, as I said I have an answer (with the correct features inside) but cannot managed to have any display on the map. I have tried without style and nothing changed.<br><br>Regards,<br>Sylvie<br><br>> Date: Fri, 4 Dec 2009 07:25:06 -0500<br>> To: kiki__fiat@hotmail.com<br>> CC: users@openlayers.org<br>> Subject: Re: [OpenLayers-Users] Problem with namespace param in vector        strategy<br>> From: crschmidt@metacarta.com<br>> <br>> On Fri, Dec 04, 2009 at 07:17:41AM +0000, sylvie fiat wrote:<br>> > <br>> > Hi,<br>> > <br>> > I am having an issue configuring my Vector strategy, I use:<br>> > <br>> > function getVectorLayerWithBounds(bounds) {<br>> > var filter = getBBOXFilter(bounds);<br>> > return new OpenLayers.Layer.Vector(layerName, {<br>> > strategies : [ <br>> > new OpenLayers.Strategy.Fixed() <br>> > ],<br>> > protocol :new OpenLayers.Protocol.HTTP( {<br>> > url :geoserverUrlWfs,<br>> > params : {<br>> > format :SERVICE_WFS,<br>> > service :SERVICE_WFS,<br>> > request :REQUEST_WFS,<br>> > srs :defaultProjection,<br>> > VERSION :VERSION,<br>> > typename :Layer,<br>> > namespace=xmlns(topp=http://www.openplans.org/topp)<br>> <br>> ^^ This is not valid Javascript.<br>> <br>> -- Chris<br>> <br>> > filter: filter<br>> > },<br>> > format :new OpenLayers.Format.GML()<br>> > })<br>> > });<br>> > }<br>> > <br>> > If I add the namespace parameters my Layer won't be displayed, I still have the WFS flux but no feature is displayed on the map.<br>> > If I don't add namespace everything is ok.<br>> > <br>> > I need the namespace parameter in order to use deegree owsproxy.<br>> > <br>> > Do you know what could be the problem ? I only got warnings<br>> > <br>> > 4 déc. 2009 18:14:41 org.apache.tomcat.util.http.Parameters processParameters<br>> > ATTENTION: Parameters: Invalid chunk ignored.<br>> > 04 déc. 18:14:42 WARN [geotools.xml] - org.geoserver.security.decorators.ReadOnlyFeatureCollection@1997837 (org.geoserver.security.decorators.ReadOnlyFeatureCollection) is not of type [Lorg.opengis.feature.simple.SimpleFeature;<br>> > <br>> > But I read it was not an important warning ?<br>> > Best regards<br>> > Sylvie<br>> > <br>> >                                            <br>> > _________________________________________________________________<br>> > Nouveau ! Tout Windows Live débarque dans votre téléphone. Voir les Windows phone<br>> > http://clk.atdmt.com/FRM/go/175819071/direct/01/<br>> > _______________________________________________<br>> > Users mailing list<br>> > Users@openlayers.org<br>> > http://openlayers.org/mailman/listinfo/users<br>> <br>> <br>> -- <br>> Christopher Schmidt<br>> MetaCarta<br>                                            <br><hr>PC, téléphones portables, souris hi-tech. à gagner grâce à Hotmail ! <a href="http://www.hotmailmagicmoment.com">C'est ici !</a>                                            <br /><hr />Vous cherchez l'intégrale des clips de Michael Jackson ? <a href='http://www.bing.com/videos/search?q=Michael+Jackson&FORM=MVDE6' target='_new'>Bing ! Trouvez !</a></body>
</html>