Re: [OpenLayers-Users] WFS + Filter

2009-11-28 Thread Eric Lemoine
On Thursday, November 26, 2009, Ivan Grcic wrote: > Actually, im not sure if filter should go to protocol. It should go in > layer options like you put it. Then strategy should take that filter > and apply it to the protocol when data is requested. > > But I dont see any filter options inside Fixe

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread stash
Ivan Grcic-2 wrote: > > > var combinedFilter=new OpenLayers.Filter.Logical({ >type:OpenLayers.Filter.Logical.AND, >filters:[filter,radiusFilter] >}); > > http://openlayers.org/dev/examples/filter.html > > Hi, Good idea to look

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
BTW this is ticket http://trac.openlayers.org/ticket/2152, but it hasnt been commited to trunk still On Thu, Nov 26, 2009 at 4:08 PM, Ivan Grcic wrote: > Check this setRadiusFilter function that Kris mentioned before. Hes > combining two filters there. > > var combinedFilter=new OpenLayers.Filter

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
Check this setRadiusFilter function that Kris mentioned before. Hes combining two filters there. var combinedFilter=new OpenLayers.Filter.Logical({ type:OpenLayers.Filter.Logical.AND, filters:[filter,radiusFilter] }); http://openlayers.

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread stash
Hi, I have one more question and I hope you can answer it. At the moment i have one filter which is working. But now, I want to add a second filter to my wfs protocol. Is that possible? adding both filters (the variables) in defaultFilter at the protocol params doesn't work. Thanks for the help

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread stash
hi, thanks for your detailed answer. I set defaultFiler: my_filter in protocol params and now it's working. That's really great. Thanks. > You have to apply the patch in order for this to work: > http://trac.openlayers.org/ticket/2292 > (best is to get OL trunk version from svn) > > I did

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
On Thu, Nov 26, 2009 at 1:31 PM, stash wrote: > > > > Hi, > > thanks for your answers. But I have to admit, that I don't know exactly what > to do now. (I have not so much experience in openlayers, so I don't > understand some of your answers. > > > Kris Geusebroek wrote: >> >> Don't know if it wo

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread stash
Hi, thanks for your answers. But I have to admit, that I don't know exactly what to do now. (I have not so much experience in openlayers, so I don't understand some of your answers. Kris Geusebroek wrote: > > Don't know if it works with fixed strategy but you can try to call > myLayer.refre

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Kris Geusebroek
users@openlayers.org Subject: Re: [OpenLayers-Users] WFS + Filter Yes, but using it together with Fixed strategy doesnt work. Maybe there is ticket allready opened for that, ill take a look. Stash, can you try putting defaultFilter option inside protocol params? On Thu, Nov 26, 2009 at 12:27 PM,

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
ers.org [mailto:users-boun...@openlayers.org] > On Behalf Of Ivan Grcic > Sent: Thursday, November 26, 2009 12:19 PM > To: stash > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] WFS + Filter > > Im going to check it out with my data now. I have to examine request > and s

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Kris Geusebroek
: Thursday, November 26, 2009 12:19 PM To: stash Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] WFS + Filter Im going to check it out with my data now. I have to examine request and see if the filter is actually sent in the request. In the meanwhile, can you try with BBOX Strategy instead

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
Im going to check it out with my data now. I have to examine request and see if the filter is actually sent in the request. In the meanwhile, can you try with BBOX Strategy instead of Fixed strategy?( Put your filter in layer options) On Thu, Nov 26, 2009 at 12:08 PM, stash wrote: > > > > Ivan G

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread stash
Ivan Grcic-2 wrote: > > Hi, > > I think filter should go inside protocol params. > And try with maxFeatures instead of maxfeatures. > > Let me know if it worked > Cheers > Hi, thanks for the hint. First the good news. When I type maxFeatures instead of maxfeatures it works. Thats fine. But

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
Actually, im not sure if filter should go to protocol. It should go in layer options like you put it. Then strategy should take that filter and apply it to the protocol when data is requested. But I dont see any filter options inside Fixed strategy, only in BBOX strategy. New ticket? So setting f

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
Hi, I think filter should go inside protocol params. And try with maxFeatures instead of maxfeatures. Let me know if it worked Cheers On Thu, Nov 26, 2009 at 10:29 AM, stash wrote: > > Hello, > > after discovering some examples from openlayers (and from the forum) I > finally made it, that my w

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread stash
Hello, after discovering some examples from openlayers (and from the forum) I finally made it, that my wfs protocol is shown on my map. Now I want to add the filter to my wfs protocol. And that is the problem. After adding the filter, all points are shown on my map again (the same result as when

Re: [OpenLayers-Users] WFS + Filter

2009-11-23 Thread Ivan Grcic
http://n2.nabble.com/request-and-parse-GML-td3991309.html On Mon, Nov 23, 2009 at 10:19 AM, Andreas Hocevar wrote: > stash wrote: >> >> Andreas Hocevar-2 wrote: >> >>> Hi, >>> >>> Please use Layer.Vector with a BBOX strategy and a WFS protocol instead >>> of Layer.WMS and see if it works then. Al

Re: [OpenLayers-Users] WFS + Filter

2009-11-23 Thread Andreas Hocevar
stash wrote: > > Andreas Hocevar-2 wrote: > >> Hi, >> >> Please use Layer.Vector with a BBOX strategy and a WFS protocol instead >> of Layer.WMS and see if it works then. Also double-check if your Point_1 >> is in the viewport, otherwise it won't be loaded because your custom >> filter is com

Re: [OpenLayers-Users] WFS + Filter

2009-11-23 Thread stash
Andreas Hocevar-2 wrote: > > Hi, > > Please use Layer.Vector with a BBOX strategy and a WFS protocol instead > of Layer.WMS and see if it works then. Also double-check if your Point_1 > is in the viewport, otherwise it won't be loaded because your custom > filter is combined with a BBOX fil

Re: [OpenLayers-Users] WFS + Filter

2009-11-23 Thread Andreas Hocevar
Hi, Please use Layer.Vector with a BBOX strategy and a WFS protocol instead of Layer.WMS and see if it works then. Also double-check if your Point_1 is in the viewport, otherwise it won't be loaded because your custom filter is combined with a BBOX filter for the viewport. Regards, Andreas. s

[OpenLayers-Users] WFS + Filter

2009-11-22 Thread stash
Hello, I have a wfs layer with some points. Now I want to add a filter to this wfs layer, that only certain points are displayed. Here is the code: var my_filter = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.EQUAL_TO, property: "NAME", value: "Point

Re: [OpenLayers-Users] WFS filter send using POST ?

2009-11-02 Thread Bhimanna Halburgi
Hi, I want add a hyperlink in the map object (in some cases return by the server). Please how can I implement this one. Thanks Bhimanna On Mon, Nov 2, 2009 at 1:05 PM, Eric Lemoine wrote: > On Tue, Oct 20, 2009 at 7:39 PM, Pere Roca Ristol > wrote: > > > > > > hi, > > > > can I send this s

Re: [OpenLayers-Users] WFS filter send using POST ?

2009-11-02 Thread Eric Lemoine
On Tue, Oct 20, 2009 at 7:39 PM, Pere Roca Ristol wrote: > > >  hi, > >  can I send this simple WFS filter via POST? (I want to add multiple > parameters in the filter and I'm afraid   GET requests will not allow this > URL length). Where should it be specified? > >  wfs = new OpenLayers.Layer.WFS

[OpenLayers-Users] WFS filter send using POST ?

2009-10-22 Thread Pere Roca Ristol
hi, can I send this simple WFS filter via POST? (I want to add multiple parameters in the filter and I'm afraid GET requests will not allow this URL length). Where should it be specified? wfs = new OpenLayers.Layer.WFS( "myWFS", "http://my_geoserver/wfs",{typename:"topp:layer",filter:

Re: [OpenLayers-Users] WFS-Filter refresh layer Problem

2009-10-10 Thread Marc Jansen
Hi Simon, find comments inline in your email. flan...@gmx.de schrieb: > Hi Users/List, > i've created (Openlayer2.8) a filter-definition and a wfs-layer like : > > //FILTER: > var wfsfilter = 'http://www.opengis.net/gml"; > xmlns:ogc="http://www.opengis.net/ogc";>'+'type'+one+'type'+two+''; > >

[OpenLayers-Users] WFS-Filter refresh layer Problem

2009-10-09 Thread fLaNsch
Hi Users/List, i've created (Openlayer2.8) a filter-definition and a wfs-layer like : //FILTER: var wfsfilter = 'http://www.opengis.net/gml"; xmlns:ogc="http://www.opengis.net/ogc";>'+'type'+one+'type'+two+''; //WFS: wfs = new OpenLayers.Layer.WFS( "WFS-Tooltip",

Re: [OpenLayers-Users] WFS Filter Stragety?

2009-02-18 Thread Tim Schaub
Hey- HKChad wrote: > I need to append an &filter= param to my WFS queries. I've already been down > the road of using OpenLayers.Layer.WFS and learning that it appends &BBOX= > to each query even if you have an &filter, and we all know that violates the > WFS spec even though some servers support

[OpenLayers-Users] WFS Filter Stragety?

2009-02-18 Thread HKChad
I need to append an &filter= param to my WFS queries. I've already been down the road of using OpenLayers.Layer.WFS and learning that it appends &BBOX= to each query even if you have an &filter, and we all know that violates the WFS spec even though some servers support it, so I learned of the new