|
Title: Environment |
|
Version:
1.0.0 |
|
URL:
http://devgeo.cciw.ca/WatershedLookupServlet/WatershedLookupServlet |
|
Contact: |
|
Tom
Kralidis (tom.kralidis@ec.gc.ca) |
|
Environment
|
|
|
|
|
|
L7R-4A6 |
|
|
The Environment Canada Watershed Lookup Service provides an GML [1] encoded web service, which returns geometries for known watershed ID codes.
The
Service provides polygon bounding geometries for watersheds as per polygon data
obtained from Geogratis [2]. The Service returns record(s) for matching watershed codes with polygon geometry,
encoded in GML 3.0.0 [1].
Below is a diagram of how the service derives feature geometry for watershed records.

The Environment Canada Watershed Lookup
Service accepts both HTTP GET and HTTP POST.
Keyword parameters may be entered in either case, however value
parameters are case sensitive.
The Service supports two (2)
operations
-
GetCapabilities
-
GetWatershed
The purpose of the GetCapabilities operation is to provide general information about the service itself and specific information about the name sources used.
|
Request parameter |
Required/Optional |
Description |
|
VERSION=1.0.0 |
R |
Request version |
|
REQUEST=GetCapabilities |
R |
Request name |
See Appendix A for ex ample
GetCapabilities requests and responses.
The purpose of the GetWatershed operation is to return the geometries for a placename inputted by a request.
|
Request Parameter |
Required/Optional |
Description |
|
VERSION=1.0.0 |
R |
Request version |
|
REQUEST=GetWatershed |
R |
Request name |
|
CODE=wx[y[z]] |
R |
Watershed code, 2, 3, or 4
alphanumeric characters |
Below is the content model returned
by a GetWatershed response:

See Appendix A for example GetWatershed
requests and responses.
The EC Watershed Lookup Service is
available at:
http://devgeo.cciw.ca/WatershedLookupServlet/WatershedLookupServlet
An online sample interface to the EC
Watershed Lookup is available at:
http://devgeo.cciw.ca/watershed/sample.html
Issues / future work:
-
Supporting full polygon line
work
-
Searching by Drainage Basin
name
The application schema for the GetWatershed response model is located
at:
http://devgeo.cciw.ca/schemas/ec/watershed/1.0.0/watershed.xsd
Sample
request:
Sample
request, searching by major drainage area for watershed code ‘01’
Sample
request, searching by sub drainage area for watershed code ‘01E’
Sample
request, searching by sub sub drainage area for watershed code ‘01EH’
[1] Cox,
S., Daisey, P.,
[2] GeoGratis, “National Scale Frameworks
Hydrology - Drainage Areas,
<http://geogratis.cgdi.gc.ca/clf/en?action=entrySummary&entryId=13798&entryType=productCollection&keymap=outlineCanada>