I'm working on a web map using esri arcgis javascript api. I'd like to use the NHD Watershed Boundary Data to draw polygons based on the boundaries of the watersheds.
Does anyone have any ideas of how to start?
I've looked at the National Map where I can download data but ideally, I could pull data from an online source rather than hosting it myself where I would be responsible for any changes to the data. I'm already using the NHD Watershed Basemap as my basemap but I don't see where the watershed boundaries are available.
-
2This API link shows the Watersheds watersgeo.epa.gov/arcgis/rest/services/NHDPlus_NP21/… - raw watersgeo.epa.gov/arcgis/rest/services/NHDPlus_NP21/…Mapperz– Mapperz ♦2014年07月29日 20:46:51 +00:00Commented Jul 29, 2014 at 20:46
-
@Mapperz This is fascinating! Thanks! I'll see if I can pull boundary data from this. You should consider posting this as an answer, it's more helpful than some of the other postings.daniella– daniella2014年07月30日 14:44:21 +00:00Commented Jul 30, 2014 at 14:44
3 Answers 3
This API link from EPA shows the Watersheds http://watersgeo.epa.gov/arcgis/rest/services/NHDPlus_NP21/WBD_NP21_Simplified/MapServer?f=jsapi -
Firebug for Firefox (Chrome Developer tools can do the same) it traces the map applications network traffic and source urls.
You might have to request permission to use this as it does not seem to be a public known mapservice.
enter image description here
It looks like you found the service to use ... http://watersgeo.epa.gov/arcgis/rest/services/NHDPlus_NP21/WBD_NP21_Simplified/MapServer/
Just plug that in to one of the many samples available and start from there.
Go Here and click "Browse Samples" https://developers.arcgis.com/javascript/
Find one that does something similar to what you want to do (or find 2 or three).
I don't work with APIs am not exactly sure what you are looking for, but watershed boundary data is available and downloadable as polygon shapefiles from multiple websites.
For example, ftp://ftp.ftw.nrcs.usda.gov/wbd/ allows one to download maps at different watershed (HUC) scales.
When you say "watershed boundary" you also need to specify at what scale.
This site provides more information regarding hydrologic units, etc.
http://water.usgs.gov/GIS/huc.html
Is this the answer you were looking for?
-
I would like multiple scales since users will be zooming in and out. I am also looking for live data as opposed to downloadable data so I don't have to host it or keep it updated. I have downloaded watershed data that I'm currently looking at.daniella– daniella2014年07月29日 19:52:19 +00:00Commented Jul 29, 2014 at 19:52
Explore related questions
See similar questions with these tags.