[OpenLayers-Users] Problem with namespace param in vector strategy

sylvie fiat kiki__fiat at hotmail.com
Sun Dec 6 17:04:19 EST 2009


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
 		 	   		  
_________________________________________________________________
Nouveau ! Tout Windows Live débarque dans votre téléphone. Voir les Windows phone
http://clk.atdmt.com/FRM/go/175819071/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091206/800e7d23/attachment.html


More information about the Users mailing list