[OpenLayers-Users] Problem with namespace param
in vector strategy
sylvie fiat
kiki__fiat at hotmail.com
Mon Dec 7 02:58:49 EST 2009
Hi,
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.
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)
featureId filter:
filter = new OpenLayers.Filter.FeatureId({
fids: tstation.ST102
});
I have in my result <gml:featureMembers/>
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 ?
Comparaison filter:
filter = new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.EQUAL_TO,
property: property,
value: value
});
I have a
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>java.lang.RuntimeException: Parsing
failed for PropertyName:
java.lang.NullPointerException Parsing failed for
PropertyName: java.lang.NullPointerException null</ows:ExceptionText>
</ows:Exception>
but my request do have the
<ogc:PropertyName>topp:idespece</ogc:PropertyName>
I don't really know what it might be
Thanks again,
Sylvie
From: kiki__fiat at hotmail.com
To: crschmidt at metacarta.com
Date: Sun, 6 Dec 2009 22:04:19 +0000
CC: users at openlayers.org
Subject: Re: [OpenLayers-Users] Problem with namespace param in vector strategy
Ok I am sorry it was just a problem of copy/paste... I wouldn't have had any answer with that request...
namespace:'xmlns(topp=http://www.openplans.org/topp)',
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.
Regards,
Sylvie
> Date: Fri, 4 Dec 2009 07:25:06 -0500
> To: kiki__fiat at hotmail.com
> CC: users at openlayers.org
> Subject: Re: [OpenLayers-Users] Problem with namespace param in vector strategy
> From: crschmidt at metacarta.com
>
> On Fri, Dec 04, 2009 at 07:17:41AM +0000, sylvie fiat wrote:
> >
> > Hi,
> >
> > I am having an issue configuring my Vector strategy, I use:
> >
> > function getVectorLayerWithBounds(bounds) {
> > var filter = getBBOXFilter(bounds);
> > return new OpenLayers.Layer.Vector(layerName, {
> > strategies : [
> > new OpenLayers.Strategy.Fixed()
> > ],
> > protocol :new OpenLayers.Protocol.HTTP( {
> > url :geoserverUrlWfs,
> > params : {
> > format :SERVICE_WFS,
> > service :SERVICE_WFS,
> > request :REQUEST_WFS,
> > srs :defaultProjection,
> > VERSION :VERSION,
> > typename :Layer,
> > namespace=xmlns(topp=http://www.openplans.org/topp)
>
> ^^ This is not valid Javascript.
>
> -- Chris
>
> > filter: filter
> > },
> > format :new OpenLayers.Format.GML()
> > })
> > });
> > }
> >
> > 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.
> > If I don't add namespace everything is ok.
> >
> > I need the namespace parameter in order to use deegree owsproxy.
> >
> > Do you know what could be the problem ? I only got warnings
> >
> > 4 déc. 2009 18:14:41 org.apache.tomcat.util.http.Parameters processParameters
> > ATTENTION: Parameters: Invalid chunk ignored.
> > 04 déc. 18:14:42 WARN [geotools.xml] - org.geoserver.security.decorators.ReadOnlyFeatureCollection at 1997837 (org.geoserver.security.decorators.ReadOnlyFeatureCollection) is not of type [Lorg.opengis.feature.simple.SimpleFeature;
> >
> > But I read it was not an important warning ?
> > Best regards
> > Sylvie
> >
> >
> > _________________________________________________________________
> > Nouveau ! Tout Windows Live débarque dans votre téléphone. Voir les Windows phone
> > http://clk.atdmt.com/FRM/go/175819071/direct/01/
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
>
>
> --
> Christopher Schmidt
> MetaCarta
PC, téléphones portables, souris hi-tech. à gagner grâce à Hotmail ! C'est ici !
_________________________________________________________________
Téléchargez Internet Explorer 8 et surfez sans laisser de trace !
http://clk.atdmt.com/FRM/go/182932252/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091207/7283082a/attachment.html
More information about the Users
mailing list