Identify Service
Description
The identify service answers the question, What information exists in EPA program data systems for this point in the surface water network? The service returns all or a selected subset of EPA programs’ source feature IDs as well as the NHD feature information.
Usage Scenarios
Gather Reporting Information
|
Problem Statement
Need to set up queries to the 303(d) impaired waters, assessed waters, and permitted dischargers web reports for users at a user selected point on the stream network. NOTE: This service can be combined with the point indexing service to take a latitude/longitude click point, translate that click point into a reach code and measure, which can be input to this service, along with a list of program systems desired. Desired InformationProgram system web report links for each event at the user click point. If external links are not available for all records, the program acronym and program ID (source feature IDs) pairs for all EPA program events at the user click point. Information Returned from ServiceThe service returns an EPA event table including program system acronym, source feature ID (external program ID), and feature detail URL (optional data element), as well as the NHD feature information at the network address entered. |
Input
Parameters
| Parameter | Datatype | Description |
|---|---|---|
| pReachType | String | 'AREA' or 'LINEAR' indicating whether the reach to be examined is a linear reach or an areal reach. |
| pReachcode | String | Reach code to be examined. |
| pReachMeasure | Number | Optional measure on a linear reach, leave NULL if you wish to examine the entire reach or if examining an areal reach. |
| pPrograms | String | Array of program abbreviations to be examined. See Appendix B for a list of current RAD programs The public web service cannot view restricted program information and attempts to view those programs will be ignored. An single string value of '*' will query all available programs. |
| pProgramsMod | String | Modifier explaining the array format used in pPrograms. See the complex object modifier descriptions for more information. |
HTTP Service Notes
Additional parameters specific to HTTP services are listed in the WATERS HTTP Services documentation.
SOAP Service Notes
The parameter listing for SOAP services is slightly different. Array parameters are not followed by a "mod" parameter as the array format is specified by the WSDL documentation.
Output
UML Diagram
Return Object
identify_service_output
| Property | Datatype | Description |
|---|---|---|
| evt_results | Object | Object Type: identify_service_evt_results |
| nhd_results | Object | Object Type: identify_service_nhd_results |
Supporting Objects
identify_service_evt_results
| Property | Datatype | Description |
|---|---|---|
| table_format | String | 'A', 'L' or 'P' indicating an Area, Line or Point event type. |
| comid | Number | The RAD event comid of the event record. |
| eventdate | Date | The RAD event date of the event record. |
| eventtype | String | The RAD event type (program abbreviation) of the event record. |
| reachcode | String | The NHD reach code of the event record. |
| reachsmdate | String | The NHD reachsmdate value of the event record. |
| reachresolution | String | The resolution of the event record. |
| source_originator | String | The source originator value of the event record. |
| source_datadesc | String | The source data description value of the event record. |
| source_featureid | String | The source feature id value of the event record. |
| featuredetailurl | String | The feature detail url value of the event record. |
| offset | Number | The offset value of the point or line event record. |
| measure | Number | The measure of the point event record. |
| fmeasure | Number | The start measure of the line event record. |
| tmeasure | Number | The end measure of the line event record. |
| shape_length | Number | The length of the line event record. |
| shape_area | Number | The area of the area event record. |
| geogstate | String | The US state in which the event record is located. |
| cycle_year | String | The cycle date of the event record. |
| start_date | String | The start date of the event record. |
identify_service_nhd_results
| Property | Datatype | Description |
|---|---|---|
| table_format | String | 'fl' or 'wb' indicating a flowline linear NHD record or a waterbody areal NHD record. |
| comid | Number | The comid of the NHD record. |
| fdate | String | The fdate (last modified date) value of the NHD record. |
| resolution | String | The resolution of the nhd record. Identify web service will only return medium resolution results at this time. |
| gnis_id | String | The GNIS id of the nhd record. |
| gnis_name | String | The GNIS name of the nhd record. |
| lengthkm | Number | The length in kilometers of linear NHD records. |
| areasqkm | Number | The area in square kilometers of area NHD records. |
| elevation | Number | The elevation of area NHD records. |
| reachcode | String | The reach code of NHD records. |
| flowdir | String | The flow direction value of linear NHD records. |
| wbareacomi | Number | The NHD waterbody comid of any intersecting feature for nhd linear records. |
| ftype | String | The ftype of NHD records. |
| fcode | Number | The fcode of NHD records. |
| f_meas | Number | The start measure of linear NHD records. |
| t_meas | Number | The end measure of linear NHD records. |
HTTP Service Notes
User must expressly add an optOutGeomFormat parameter to service requests to receive back geometries.
SOAP Service Notes
The SOAP service does not return any geometries with results.
Javascript Library
| Function Name |
|---|
| WATERS.Services.IdentifyService |
HTTP Service
| Resource | Location |
|---|---|
| Runtime Endpoint | http://oaspub.epa.gov/waters10/waters_services/identifyService |
Web Service (SOAP)
EPA hosted Oracle Application Servers currently utilize an older version of Oracle Containers for J2EE (OC4J). The SOAP endpoints generated for OC4J by Oracle Jdeveloper have several limitations that service users should be aware of. While many service parameters take a NULL value to indicate that a particular parameter is not applicable or not to used, the service endpoint may report an error if any numeric parameters are left empty. Users may choose to either utilize the "simple" service interfaces whereby all parameters are accepted as strings or users may enter numeric values of -9999 to indicate NULL.
| Resource | Location |
|---|---|
| Runtime Endpoint | http://iaspub.epa.gov/WATERSWebServices/OWServices |
| WSDL Endpoint | http://iaspub.epa.gov/WATERSWebServices/OWServices?WSDL |
Sample SOAP Request (Oracle 10.2.0.2 OC4J):
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://iaspub.epa.gov/WATERSWebServices/OWServices"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>
<SOAP-ENV:Body>
<ns1:identifyService>
<pReachType xsi:type="xsd:string">L</pReachType>
<pReachCode xsi:type="xsd:string">03070101000376</pReachCode>
<pReachMeasure xsi:type="xsd:decimal">40</pReachMeasure>
<pPrograms
xmlns:ns1="http://waters-waters/OWServices.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns1:waters_waters_OwStringVry"
>
<array
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="SOAP-ENC:Array"
SOAP-ENC:arrayType="xsd:string[2]"
>
<string xsi:type="xsd:string">303D</string>
<string xsi:type="xsd:string">FISH</string>
</array>
</pPrograms>
</ns1:identifyService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sample Soap Response:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<SOAP-ENV:Body>
<ns1:identifyServiceResponse
xmlns:ns1="http://epadev.induscorp.com/WATERSWebServices/OWServices"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>
<return
xmlns:ns2="http://waters-waters/OWServices.xsd"
xsi:type="ns2:waters_waters_IdentifyServiceOutputUser"
>
<nhdResults xsi:type="ns2:waters_waters_IdentifyServiceNhdList">
<array
xmlns:ns3="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:Array"
ns3:arrayType="ns2:waters_waters_IdentifyServiceNhdResultsUser[1]"
>
<item xsi:type="ns2:waters_waters_IdentifyServiceNhdResultsUser">
<areasqkm xsi:type="xsd:decimal" xsi:nil="true"></areasqkm>
<tableFormat xsi:type="xsd:string">fl</tableFormat>
<TMeas xsi:type="xsd:decimal">100</TMeas>
<reachcode xsi:type="xsd:string">03070101000376</reachcode>
<comid xsi:type="xsd:decimal">1047533</comid>
<fcode xsi:type="xsd:decimal">46006</fcode>
<resolution xsi:type="xsd:string">Medium</resolution>
<FMeas xsi:type="xsd:decimal">0</FMeas>
<elevation xsi:type="xsd:decimal" xsi:nil="true"></elevation>
<gnisId xsi:type="xsd:string">00328761</gnisId>
<flowdir xsi:type="xsd:string">With Digitized</flowdir>
<gnisName xsi:type="xsd:string">Middle Oconee River</gnisName>
<enabled xsi:type="xsd:string" xsi:nil="true"></enabled>
<wbareacomi xsi:type="xsd:decimal">0</wbareacomi>
<lengthkm xsi:type="xsd:decimal">0.025</lengthkm>
<ftype xsi:type="xsd:string">StreamRiver</ftype>
<fdate xsi:type="xsd:dateTime">2004-08-01T04:00:00.000Z</fdate>
</item>
</array>
</nhdResults>
<evtResults xsi:type="ns2:waters_waters_IdentifyServiceEvtList">
<array
xmlns:ns4="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:Array"
ns4:arrayType="ns2:waters_waters_IdentifyServiceEvtResultsUser[1]"
>
<item xsi:type="ns2:waters_waters_IdentifyServiceEvtResultsUser">
<startDate xsi:type="xsd:dateTime">2004-04-01T05:00:00.000Z</startDate>
<tableFormat xsi:type="xsd:string">L</tableFormat>
<shapeArea xsi:type="xsd:decimal" xsi:nil="true"></shapeArea>
<reachcode xsi:type="xsd:string">03070101000376</reachcode>
<comid xsi:type="xsd:decimal">958128</comid>
<cycle xsi:type="xsd:dateTime">2004-04-01T05:00:00.000Z</cycle>
<offset xsi:type="xsd:decimal">0</offset>
<sourceDatadesc xsi:type="xsd:string">303D</sourceDatadesc>
<sourceOriginator xsi:type="xsd:string">GA</sourceOriginator>
<tmeasure xsi:type="xsd:decimal">100</tmeasure>
<sourceFeatureid xsi:type="xsd:string">GA-R030701010103</sourceFeatureid>
<eventdate xsi:type="xsd:dateTime" xsi:nil="true"></eventdate>
<shapeLength xsi:type="xsd:decimal">25</shapeLength>
<featuredetailurl xsi:type="xsd:string" xsi:nil="true"></featuredetailurl>
<fmeasure xsi:type="xsd:decimal">0</fmeasure>
<reachresolution xsi:type="xsd:string" xsi:nil="true"></reachresolution>
<geogstate xsi:type="xsd:string">GA</geogstate>
<reachsmdate xsi:type="xsd:dateTime" xsi:nil="true"></reachsmdate>
<eventtype xsi:type="xsd:string">303D</eventtype>
<measure xsi:type="xsd:decimal" xsi:nil="true"></measure>
</item>
</array>
</evtResults>
</return>
</ns1:identifyServiceResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Database Service
Database service users will require the RAD_PUBLIC role for accessing unprotected RAD program results. Accessing protected RAD program data requires additional roles which must be may only be obtained through proper EPA channels.
| Database Instance | Schema | Resource |
|---|---|---|
| WATERS10 | ow_service | identify_service.main_srv |
Changelog
Version: 2.0 - Released: August 31, 2009
![[logo] US EPA](http://www.epa.gov/epafiles/images/logo_epaseal.gif)