Re: [OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-11 Thread Alexandre Dube
Mika Lehtonen wrote: Hi Alexandre, I guess you mean http://dev4.mapgears.com/bdga/bdgaWFS-T.html ? I have my data in PostGIS and I mean features that aren't shown in my map. Or actually they are shown, but through wms. I am already fetching some attributes after geometry comparison

Re: [OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-11 Thread Lehtonen, Mika
Alexandre Dube kirjoitti: I have my data in PostGIS and I mean features that aren't shown in my map. Or actually they are shown, but through wms. I am already fetching some attributes after geometry comparison through wfs GetFeature, but I was wondering whether there would some other ways

Re: [OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-11 Thread Alexandre Dube
Well I guess your CQL_FILTER approach looks ok, so you could just change it to request a specific feature that has a specific attribute value. I never used GeoServer but I think the following links could help you find what you need : http://geoserver.org/display/GEOSDOC/WMS+vendor+parameters

Re: [OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-11 Thread Lehtonen, Mika
Yep, that'll I do. I was just wondering whether there would be a clever way to do this, but I guess, because I haven't got any features rendered and actually extractAttributes is set to false, it's better to stick to that GetFeature method. Actually my present need is to fetch a single only

[OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-10 Thread Lehtonen, Mika
Hi, what is the easiest and the less performance consuming method to retrieve a geometry (actually the bounds would be enough) if I know an attribute value on that particular feature and I also know that there is only one feature having that particular attribute value? Layer is WFS and is

Re: [OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-10 Thread Alexandre Dube
Hey Mika, Do you mean a feature that is currently shown on the map or any feature from your data source, including the ones currently on screen and the ones not generated yet ? Because if it's one on screen you could easily accomplish that by looping through your layer.features, searching in

Re: [OpenLayers-Users] wfs feature geometry based on one attribute value

2008-12-10 Thread Mika Lehtonen
Hi Alexandre, I guess you mean http://dev4.mapgears.com/bdga/bdgaWFS-T.html ? I have my data in PostGIS and I mean features that aren't shown in my map. Or actually they are shown, but through wms. I am already fetching some attributes after geometry comparison through wfs GetFeature, but I