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.

Is there a JavaScript library available to read data from a WFS server?

share|improve this question
add comment

2 Answers

up vote 11 down vote accepted

OpenLayers is the best IMHO. You can easily make WFS calls to an WFS service.

If you want to just return data and not map features, you can also do this. Or map features without the data, or both.

here are some examples:

http://openlayers.org/dev/examples/getfeature-wfs.html

http://openlayers.org/dev/examples/wfs-filter.html

share|improve this answer
    
Thanks for the tip! Open Layers is just what I was looking for. –  Josh Knauer Mar 18 '11 at 14:38
add comment

Josh, you should be more precise and tell us if you want to use returned data or map features.

See capdragon answer regarding map features. If you only want to handle data, the following can be a good & light alternative :

If you want to parse a GetCapabilities WFS server response, you can just use jQuery because it's xml ( http://marcgrabanski.com/articles/jquery-makes-parsing-xml-easy ). You could also implement jQuery invoking GetFeature since output is xml/gml formatted

share|improve this answer
    
Thanks for the reply simo :) At this point I'm just generically looking into it, so I don't have any specific need for data vs. features. However, keeping it simple and using jQuery to help parse the XML DOM is excellent suggestion. –  Josh Knauer Mar 18 '11 at 14:43
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.