Re: [OpenLayers-Users] WFS + Filter

2009-11-28 Thread Eric Lemoine
On Thursday, November 26, 2009, Ivan Grcic igr...@gmail.com 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

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

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 steffen.schwar...@googlemail.com wrote: Hello, after discovering some examples from openlayers (and from the forum) I

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

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 the

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

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
, 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 of Fixed

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Kris Geusebroek
@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, Kris

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

Re: [OpenLayers-Users] WFS + Filter

2009-11-26 Thread Ivan Grcic
On Thu, Nov 26, 2009 at 1:31 PM, stash steffen.schwar...@googlemail.com 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:

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 not

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

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] });

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 igr...@gmail.com wrote: Check this setRadiusFilter function that Kris mentioned before. Hes combining two filters there. var combinedFilter=new

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 at this

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.

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 filter

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 combined with a

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 ahoce...@opengeo.org 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.

[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_1

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 pero...@gmail.com 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

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 eric.lemo...@camptocamp.comwrote: On Tue, Oct 20, 2009 at 7:39 PM, Pere Roca Ristol pero...@gmail.com wrote:

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 = 'ogc:Filter xmlns:gml=http://www.opengis.net/gml;

[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 = 'ogc:Filter xmlns:gml=http://www.opengis.net/gml;