1

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?

1

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

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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