[OpenLayers-Users] Alternatives to get rid of WFS layers

Phil Scadden p.scadden at gns.cri.nz
Sun Jan 11 16:24:13 PST 2015


 >And then it could be very hardand time-consuming to select just the 
4-5 features you are interested in. It is much easier to select them >on 
the map itself.

What I dont follow is why, if it would be easy to select them on the 
map, could you not select them with WFS? The powerful feature of WFS is 
that you can do spatial and feature-based queries on the server. If you 
click on the map to select a feature you can see there (drawn with WMS), 
then you do a spatial select in WFS to fetch only features that 
intersect the click point. You only run into major problem if a single 
click on the map could have a very large no. of features (or very big 
geometries). In this case, then yes, WFS to return the FeatureID (and 
enough other info for users to decide which were the ones they wanted), 
into checkbox list would work. However, if you are selecting only 
features intersecting the point where user clicks, then it should be a 
small no. of features. If it returned an excessive count, you could 
detect that. Then issue message say "too many features, please zoom in 
and try again".



Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.



More information about the Users mailing list