420 likes | 639 Views
Web Services in the U.S. Geological Survey StreamStats Web Application. U.S. Department of the Interior U.S. Geological Survey. GEOWS 2009 Session: Web Services & Geospatial Systems February 03, 2009 10:30 – 12:15 John D Guthrie
E N D
Web Services in the U.S. Geological Survey StreamStats Web Application U.S. Department of the Interior U.S. Geological Survey
GEOWS 2009 Session: Web Services & Geospatial Systems February 03, 2009 10:30 – 12:15 John D Guthrie USGS Geography Discipline, Denver, COjdguthrie@usgs.gov Christine Dartiguenave, ESRI cdartiguenave@esri.com Kernell G. Ries III USGS Water Discipline, Baltimore, MDkries@usgs.gov U.S. Department of the Interior U.S. Geological Survey
Outline • Brief Description of StreamStats • The Benefits of using Web Services • Web Services Used by StreamStats • Web Services Provided by StreamStats
StreamStats Web Application • Provides published streamflow statistics, basin and climatic characteristics, and other information for data-collection stations • Allows users to select points on ungaged streams. Using GIS at this location: • Computes the basin-drainage boundary • Measures the drainage-basin characteristics for the computed basin-drainage boundary • Estimates Flows at the requested point using regression equations
Uses of Streamflow Statistics • Design of structures such as roads, bridges, culverts, dams, locks, and levees • Water resources planning and management • Flood-plain mapping for zoning and insurance rate setting • Instream flow determinations for pollution control and habitat protection • Design and permitting of facilities such as wastewater-treatment plants, hydropower plants, and water-supply reservoirs
StreamStats Web Application • Current implementation status by state
StreamStats Web Application • Web Application usage statistics
What are Web Services? • Web Services provide the means for software to connect to other software applications in order to build distributed, service-oriented systems
Web Service Benefits • Allows applications to remotely access the functionality of another system • Reduces duplication of effort • In data collection and processing • Typical StreamStats state application requires 50-75 GB storage • Conversion from ArcIMS to ArcGIS Sever took 2 ½ yrs
Web Services used by StreamStats NHD* Web Services Zoom to Reach/Measure StreamStats Application GNIS** Web Services Zoom to Place Name * National Hydrography Dataset ** Geographic Names Information System
Web Services used by StreamStats • Zoom To reach code
Web Services used by StreamStats • Zoom To NHD reach and measure
Web Services used by StreamStats • NHD Web Services • Send Request to NHD Server http://rockys97/NHDService/Service.asmx/NHDlatlong?reach=16020201000056&measure=25 • NHD Returns <?xml version="1.0" encoding="utf-8" ?> <string xmlns="http://tempuri.org/"> -111.80355,39.71302</string>
Web Services used by StreamStats • Zoom To place name
Web Services used by StreamStats • Benefits of using NHD and GNIS • StreamStats does not need to maintain a copy of the data • StreamStats does not have to maintain the code • Shorter development time
Web Services provided by StreamStats • The First StreamStats Web Service • Developed in 2007 using ArcGIS Server 9.1 • Follows Open Geospatial Consortium Standards for Geography Markup Language Boundary Delineation KWMIP* StreamStats Web Services Climate Data * Kentucky Watershed Modeling Information Portal
Web Services provided by StreamStats • First StreamStats Web Service
Web Services provided by StreamStats • StreamStats Web Services used by KWMIP
Web Services provided by StreamStats • StreamStats Web Services used by KWMIP
Web Services provided by StreamStats • StreamStats Web Services used by KWMIP
Web Services provided by StreamStats • StreamStats Current Web Services • Use ArcGIS 9.2 • Follow FIPSPUB 5-2 for State Abbreviations • Use the Coordinate Reference System as defined OGC and EPSG Geodesy Parameters V 6.6 • Provide increased tool capability • Watershed Delineation • Basin Characteristics • Flow Statistics • Download
Web Services provided by StreamStats • StreamStats Current Web Services • Output Formats • Extensible Markup Language (XML) • Keyhole Markup Language (KML) • Serialized ArcObjects (ESRI ArcGIS 9.2) • Geography Markup Language (GML) will be available soon • See users instructions at: http://streamstats.usgs.gov/webservices/ Use of trade, product, or firm names is for descriptive purposes only and does not imply endorsement by the U.S. Government.
Web Services provided by StreamStats Note: HTTP POST is not working externally at this time.
Web Services provided by StreamStats • HTTP GET Format http://streamstatsags.cr.usgs.gov/ss_ws_92/Service.asmx/getStreamstats?x=-111.1563&y=39.4725&inCRS=EPSG:6.6:4326&StateNameAbbr=UT&getBasinChars=C&getFlowStats=C&getGeometry=KML&downloadFeature=False&clientID=UT%20Demo
Web Services provided by StreamStats • What the request does • Computes the basin-drainage boundary at the X and Y point requested • Measures the drainage-basin characteristics for the computed basin-drainage boundary • Estimates Flows at the requested point using regression equations • Projects the points and polygon to WGS84 • Generates a KML file
Web Services provided by StreamStats Save as .kml file
StreamStats Web Application • Batch Processing Tool • A tool is under current development as a desktop application • Will be able to download the tool • Input: shapefile of points • Must be snapped to the stream grid • Projection must be defined • Output: shapefile of basin delineations • Can include Basin Characteristics • Can include Flow Statistics
StreamStats Web Application • Batch Processing Tool
Questions? http://StreamStats.usgs.gov/webservices/
GEOWS 2009 Session: Web Services & Geospatial Systems February 03, 2009 10:30 – 12:15 John D Guthrie USGS Geography Discipline, Denver, COjdguthrie@usgs.gov Christine Dartiguenave, ESRI cdartiguenave@esri.com Kernell G. Ries III USGS Water Discipline, Baltimore, MDkries@usgs.gov U.S. Department of the Interior U.S. Geological Survey