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

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

share|improve this question
up vote 12 down vote accepted

I think OpenLayers is the best. 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:

share|improve this answer

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 ( ). 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

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.