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.

In what format WMSgetFeatureInfo return data ?

and how get particular data from html table using openlayers ........

thanks for any help...

share|improve this question
add comment

2 Answers

Geoserver by default sends data back in html format. In the latest version of Geoserver, you can request the data in JSON as well. This will be the easiest way to get data in JavaScript and parse it according to your needs.

Please check the Geoserver Docs for more details

share|improve this answer
    
If you call a WMS GetFeatureInfo, I think it'll return XML, not HTML –  BradHards Apr 11 '13 at 8:23
    
@BradHards try it out and let me know. Every geoserver i have installed and configured gives html output as default. –  Devdatta Tengshe Apr 11 '13 at 10:11
add comment

The WMS specification mandates no formats at all. Most servers support text/plain and text/html, GeoServer adds a couple of GML variants, and JSON

share|improve this answer
    
Thats correct, and so you will have to write a parser for each WMS you query. You could try to persuade the data provider to set up a WFS, where the data structure is more well-defined (correct me if I'm wrong). –  til_b Apr 11 '13 at 11:45
1  
Yes, WFS must support GML at the bare minimum. –  Andrea Aime Apr 15 '13 at 9:48
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.