| 1 |
# Test ability of OWSLib.wfs to interact with USDA SSURGO WFS 1.0.0 web service |
| 2 |
# Contact e-mail: [email protected] |
| 3 |
|
| 4 |
>>> from owslib.wfs import WebFeatureService |
| 5 |
>>> wfs_filter = "<Filter><BBOX><PropertyName>Geometry</PropertyName> <Box srsName='EPSG:4326'><coordinates>-76.766960,39.283611 -76.684120,39.338394</coordinates> </Box></BBOX></Filter>" |
| 6 |
>>> wfs = WebFeatureService('http://SDMDataAccess.nrcs.usda.gov/Spatial/SDMWGS84Geographic.wfs', version='1.1.0', timeout=360) |
| 7 |
>>> response = wfs.getfeature(typename='mapunitpolyextended', filter=wfs_filter, propertyname=None) |
| 8 |
>>> response.read().find('<wfs:FeatureCollection') > 0 |
| 9 |
True |