Issue with FEMA OGC Web Feature Service returning HTTP 400 error when attempting to download GML file

by Burrow   Last Updated September 04, 2018 20:22 PM

I'm trying to use an OGC web feature service in some software I am involved in developing. The service is described at the bottom of this page: https://hazards.fema.gov/femaportal/wps/portal/NFHLWMS

The problem I am having is that sometimes this service works and I am able to download data and other times I get an error when trying to download data.

Here is an example:

When I type the following web address into a browser, the web service returns a GML file with some valid data that can be read into any application that supports reading GML files (this example is on the above web page; I have made a slight variation to get it to work):

https://hazards.fema.gov/gis/nfhl/services/public/NFHL/MapServer/WFSServer?SERVICE=WFS&REQUEST=GetFeature&TYPENAME=public_NFHL%3AFlood_Hazard_Zones&BBOX=41%2C-121.5%2C41.125%2C-121.375%2Curn%3Aogc%3Adef%3Acrs%3AEPSG%3A6.9%3A4269&MAXFEATURES=1000

However, when I use the following web address, I get an http 400 error:

https://hazards.fema.gov/gis/nfhl/services/public/NFHL/MapServer/WFSServer?SERVICE=WFS&REQUEST=GetFeature&TYPENAME=public_NFHL%3AFlood_Hazard_Zones&BBOX=35.7676915216378%2C-78.5525055812731%2C35.7768315700909%2C-78.5339446948894%2Curn%3Aogc%3Adef%3Acrs%3AEPSG%3A6.9%3A4269&MAXFEATURES=1000

Everything is the same in both addresses, but the second one has different "BBOX" or bounding box coordinates. Both should have valid flood hazard zone data. Do you know why the second request returns the HTTP error code? Is there a way to work around this problem?

Tags : wfs gml flood http


Related Questions



WMS GetMap request with POST and XML in GeoServer

Updated March 12, 2017 11:22 AM

Add cookies to a WMS request with OpenLayers2

Updated June 10, 2017 15:22 PM


Python module requests do not work with gs:// URLs

Updated October 24, 2018 23:22 PM