Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Your Answer


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.