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.

Having a problem trying to get WMSGetFeatureInfo to work in openlayers - running off of Geoserver (http://gisnexus.com/cmha/cmha_site_test.html) you click on any feature, it shows as if the layer is being read from opengeospatial.net - but nowhere in the code does it call out to it!

share|improve this question
    
possible duplicate of WMS Request Returns nothing with Geoserver –  iant Mar 14 '12 at 18:49
1  
I just went to your site, clicked a feature, and got a GetFeatureInfo response from gisnexus.com - what's the problem? –  tomfumb Mar 15 '12 at 20:58
add comment

1 Answer

WMSGetFeatureInfo is to retrieve information from a WMS server. (http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Control/WMSGetFeatureInfo-js.html)

I you want WFS information you need to use GetFrature control: http://dev.openlayers.org/releases/OpenLayers-2.11/doc/apidocs/files/OpenLayers/Control/GetFeature-js.html

Check you are using the right control.

share|improve this answer
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.