2

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:

http://inspire.biodiversity.ro/ENVPS/GOPublisherWFS?service=WFS&version=2.0.0&request=GetFeature&TYPENAME=ps:ProtectedSite&featureid=ROSCI0065&

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 '16 at 10:57
1

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

http://myserver/geoserver/wfs?srsname=EPSG:4326&BBOX=xMinimumValue,yMinimumValue,xMaximumValue,yMaximumValue&typename=workspaceName:layerName&version=1.0.0&request=GetFeature&service=WFS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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