Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a WMS layer and i want to get fid of polygon in it by click it. How can i do it?
I know that i can create WFS layer from this WMS and get feature attributes from layer or store. But its possible do this use just WMS? I dont want use WFS Layer couse it may contain ~30k features. But if i will use WFS Layer with visible=false selection control will be works? I find SLDSelect control its can help me?
Maybe its possible to do like in gxp library?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

WMS has standard (but optional) request GetFeatureInfo which should be implemented by most WMS servers. You do not need WFS for just object identification.

share|improve this answer
    
I use GetFeatureInfo early but i have only several test objects on layer. How i remember get ifo about all features from layer or its possible to get info of only one feature? –  Kliver Max Nov 22 '12 at 8:02
1  
GetFeatureInfo allows you to get attributes - in your case, the fid - of one feature, the one the user clicks on. –  dariapra Nov 22 '12 at 11:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.