I would like to know if it is possible to get the bounding box from a geometry returned by a WFS service. An example of WFS feature request:


I am trying to create a simple web app that helps users without a GIS build valid WMS GetMap requests to generate maps of protected sites from my country.

The services are INSPIRE-compliant, the view service is a WMS Service (published from ArcGIS), and the data service is a WFS Service (published from GOPublisher).

Ideally I would like my users to select the criteria for generating a static map of the data, pass this filter to the WFS service, compute the bounding box of the data in question, and pass this bounding box as a parameter in the WMS GetMap requests.

I have read that JQuery has some XML parsing support, but maybe someone here can recommend a library/method that is more GIS?

  • Hi Sorin, nice question. Just wondering whether you could create a stored query on Snowflake to answer your Get BBOX for Feature ID question, rather than trying to somehow parse the response on the client to get the same answer.
    – nmtoken
    Jan 14, 2016 at 10:57

1 Answer 1


An example of a geoserver layer WFS bbox request would go something like this:



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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