Hi Andrea, I will look into filter as you suggested. thanks a lot
Hi Ricardo,
I'm new to both geoserver and OL, would you please give me just a direction
or any example to face this using openlayer?
thanks a lot
- Antonio
On Wed, Apr 13, 2011 at 8:58 AM, Andrea Aime
<[email protected]>wrote:
> On Tue, Apr 12, 2011 at 11:52 PM, Antonio Parrotta
> <[email protected]> wrote:
> > Hi, I'm new to geoserver, need to find feature/s by attributes. Basically
> I
> > need to query the layer searching by a set of attributes, then highlight
> the
> > returned feature on the map. Is it feasible?
>
> Add the layer twice to your map, once with the usual style, once with
> the highlight style.
> Then use CQL_FILTER to filter the second layer according to your
> selection whilst
> the first remains unfiltered, something like:
>
> &CQL_FILTER=INCLUDE;myAttribute>35
>
> Using OL + WFS as Ricardo suggested is another option. It will give
> you more control,
> probably nice popup functionality and visual feedback as you hover on
> the selection,
> but it won't scale up to large selections (e.g., more than a few tens
> of features)
> whilst the approach I'm suggesting above will be much more static but
> will scale up
> to whatever selection size with no particular problems.
>
> Cheers
> Andrea
>
> --
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax: +39 0584 962313
> mob: +39 333 8128928
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
> -------------------------------------------------------
>
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users