-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from GSA/feature/waf-extraction
WAF extraction
- Loading branch information
Showing
18 changed files
with
1,824 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from harvester.extract import download_waf, traverse_waf | ||
|
||
|
||
def test_traverse_waf(get_waf_url): | ||
files = traverse_waf(get_waf_url, filters=["../", "dcatus/"]) | ||
assert len(files) == 7 | ||
|
||
downloaded_files = download_waf(files) | ||
assert len(downloaded_files) == 7 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,237 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE metadata SYSTEM "https://thor-f5.er.usgs.gov/ngtoc/metadata/fgdc-std-001-1998.dtd"> | ||
<metadata> | ||
<idinfo> | ||
<citation> | ||
<citeinfo> | ||
<origin>U.S. Geological Survey</origin> | ||
<pubdate>2018</pubdate> | ||
<title>USGS Hydro Cached Base Map Service from The National Map</title> | ||
<geoform>raster digital data, map service</geoform> | ||
<pubinfo> | ||
<pubplace>Rolla, MO and Denver, CO</pubplace> | ||
<publish>USGS - National Geospatial Technical Operations Center (NGTOC)</publish> | ||
</pubinfo> | ||
<onlink>https://viewer.nationalmap.gov/viewer</onlink> | ||
</citeinfo> | ||
</citation> | ||
<descript> | ||
<abstract>This service is a cached overlay of a cartographic representation of the National Hydrography Dataset (NHD). The NHD is a comprehensive set of digital geospatial data that encodes information about naturally occurring and constructed bodies of surface water, paths through which water flows, related features such as stream gages and dams, and additional hydrologic information. It is available nationwide in a 1:24,000-scale seamless dataset, referred to as high resolution NHD. The NHD supports many applications, such as making maps, geocoding observations, flow modeling, data maintenance and stewardship. For additional information, go to http://nhd.usgs.gov. Additional datasets are used for small-scale hydrography representation as well, including medium resolution NHDPlus published by EPA; USGS Small-Scale hydrography; and bathymetry from ETOPO1 Global Relief, provided by NOAA National Centers for Environmental Information, U.S. Coastal Relief Model. </abstract> | ||
<purpose>This tile cache base map provides a visualization of the free data that is | ||
available for download from The National Map at https://viewer.nationalmap.gov/viewer. </purpose> | ||
<supplinf></supplinf> | ||
</descript> | ||
<timeperd> | ||
<timeinfo> | ||
<sngdate> | ||
<caldate>2018</caldate> | ||
</sngdate> | ||
</timeinfo> | ||
<current>publication date</current> | ||
</timeperd> | ||
<status> | ||
<progress>Complete</progress> | ||
<update>As needed</update> | ||
</status> | ||
<spdom> | ||
<bounding> | ||
<westbc>-179.999</westbc> | ||
<eastbc>-65</eastbc> | ||
<northbc>71.5</northbc> | ||
<southbc>17.625</southbc> | ||
</bounding> | ||
</spdom> | ||
<keywords> | ||
<theme> | ||
<themekt>NGDA Portfolio Themes</themekt> | ||
<themekey>National Geospatial Data Asset</themekey> | ||
<themekey>NGDA</themekey> | ||
<themekey>Water Inland Theme</themekey> | ||
</theme> | ||
<theme> | ||
<themekt>None</themekt> | ||
<themekey>National Hydrography Dataset</themekey> | ||
<themekey>NHD</themekey> | ||
<themekey>Water</themekey> | ||
<themekey>Rivers</themekey> | ||
<themekey>Streams</themekey> | ||
<themekey>Lakes</themekey> | ||
<themekey>The National Map</themekey> | ||
<themekey>USGS</themekey> | ||
</theme> | ||
<theme> | ||
<themekt>ISO 19115 Topic Category</themekt> | ||
<themekey>imageryBaseMapsEarthCover</themekey> | ||
<themekey>boundaries</themekey> | ||
<themekey>elevation</themekey> | ||
<themekey>inlandWaters</themekey> | ||
</theme> | ||
<theme> | ||
<themekt>The National Map Theme Thesaurus</themekt> | ||
<themekey>Hydrography</themekey> | ||
</theme> | ||
<theme> | ||
<themekt>The National Map Type Thesaurus</themekt> | ||
<themekey>Base Map Service</themekey> | ||
</theme> | ||
|
||
<place> | ||
<placekt>Geographic Names Information System</placekt> | ||
<placekey>US</placekey> | ||
<placekey>United States</placekey> | ||
</place> | ||
</keywords> | ||
|
||
<accconst>None</accconst> | ||
<useconst>None. Acknowledgement of the originating agencies would be appreciated in products | ||
derived from these data. </useconst> | ||
<browse> | ||
<browsen>https://thor-f5.er.usgs.gov/ngtoc/metadata/waf/services/base_maps/browse/basemap-hydro-cached.png</browsen> | ||
<browsed>Browse graphic showing US representation at small scale.</browsed> | ||
<browset>JPG</browset> | ||
</browse> | ||
<datacred>USGS, NHD Stewards - https://nhd.usgs.gov/stewardship.html#.W2tN29Uzqpo</datacred> | ||
<native>ArcGIS 10.2</native> | ||
</idinfo> | ||
<spdoinfo> | ||
<direct>Raster</direct> | ||
</spdoinfo> | ||
<spref> | ||
<horizsys> | ||
<planar> | ||
<mapproj> | ||
<mapprojn>WGS84 Web Mercator (Auxiliary Sphere)</mapprojn> | ||
<mercator> | ||
<stdparll>0</stdparll> | ||
<longcm>0</longcm> | ||
<feast>0</feast> | ||
<fnorth>0</fnorth> | ||
</mercator> | ||
</mapproj> | ||
<planci> | ||
<plance>coordinate pair</plance> | ||
<coordrep> | ||
<absres>1.000000</absres> | ||
<ordres>1.000000</ordres> | ||
</coordrep> | ||
<plandu>meters</plandu> | ||
</planci> | ||
</planar> | ||
</horizsys> | ||
</spref> | ||
<distinfo> | ||
<distrib> | ||
<cntinfo> | ||
<cntorgp> | ||
<cntorg>U.S. Geological Survey</cntorg> | ||
<cntper>Not Provided</cntper> | ||
</cntorgp> | ||
<cntaddr> | ||
<addrtype>mailing and physical</addrtype> | ||
<address>PO Box 25046 Denver Federal Center</address> | ||
<city>Lakewood</city> | ||
<state>CO</state> | ||
<postal>80225</postal> | ||
</cntaddr> | ||
<cntvoice>1-888-ASK-USGS (1-888-275-8747)</cntvoice> | ||
<cntemail>tnm_help@usgs.gov</cntemail> | ||
</cntinfo> | ||
</distrib> | ||
<resdesc>USGS Hydro-NHD Base Map Service</resdesc> | ||
<distliab>Although these data have been processed successfully on a computer system at the | ||
U.S. Geological Survey, no warranty expressed or implied is made regarding the accuracy or | ||
utility of the data on any other system or for general or scientific purposes, nor shall | ||
the act of distribution constitute any such warranty. This disclaimer applies both to | ||
individual use of the data and aggregate use with other data. It is strongly recommended | ||
that these data are directly acquired from a U.S. Geological Survey server, and not | ||
indirectly through other sources which may have changed the data in some way. It is also | ||
strongly recommended that careful attention be paid to the contents of the metadata file | ||
associated with these data. The U.S. Geological Survey shall not be held liable for | ||
improper or incorrect use of the data described and/or contained herein.</distliab> | ||
<stdorder> | ||
<digform> | ||
<digtinfo> | ||
<formname>Hydro Cached Base Map Service (ArcGIS)</formname> | ||
<formvern>10.21</formvern> | ||
<formspec>https://developers.arcgis.com/rest/</formspec> | ||
</digtinfo> | ||
<digtopt> | ||
<onlinopt> | ||
<computer> | ||
<networka> | ||
<networkr>https://basemap.nationalmap.gov/arcgis/rest/services/USGSHydroCached/MapServer</networkr> | ||
</networka> | ||
</computer> | ||
</onlinopt> | ||
</digtopt> | ||
</digform> | ||
<digform> | ||
<digtinfo> | ||
<formname>Hydro Cached Base Map Service (WMS)</formname> | ||
<formvern>1.3.0</formvern> | ||
<formspec>https://www.opengeospatial.org/standards/wms</formspec> | ||
</digtinfo> | ||
<digtopt> | ||
<onlinopt> | ||
<computer> | ||
<networka> | ||
<networkr>https://basemap.nationalmap.gov/arcgis/services/USGSHydroCached/MapServer/WMSServer?request=GetCapabilities&service=WMS</networkr> | ||
</networka> | ||
</computer> | ||
</onlinopt> | ||
</digtopt> | ||
</digform> | ||
<digform> | ||
<digtinfo> | ||
<formname>Hydro Cached Base Map Service (WMTS)</formname> | ||
<formvern>1.0.0</formvern> | ||
<formspec>https://www.opengeospatial.org/standards/wmts</formspec> | ||
</digtinfo> | ||
<digtopt> | ||
<onlinopt> | ||
<computer> | ||
<networka> | ||
<networkr>https://basemap.nationalmap.gov/arcgis/rest/services/USGSHydroCached/MapServer/WMTS/1.0.0/WMTSCapabilities.xml</networkr> | ||
</networka> | ||
</computer> | ||
</onlinopt> | ||
</digtopt> | ||
</digform> | ||
<fees>None</fees> | ||
</stdorder> | ||
</distinfo> | ||
<metainfo> | ||
<metd>20181128</metd> | ||
<metc> | ||
<cntinfo> | ||
<cntorgp> | ||
<cntorg>U.S. Geological Survey, National Geospatial Technical Operations | ||
Center</cntorg> | ||
<cntper>Not Provided</cntper> | ||
</cntorgp> | ||
<cntaddr> | ||
<addrtype>mailing and physical</addrtype> | ||
<address>1400 Independence Road</address> | ||
<city>Rolla</city> | ||
<state>MO</state> | ||
<postal>65401</postal> | ||
</cntaddr> | ||
<cntaddr> | ||
<addrtype>mailing and physical</addrtype> | ||
<address>PO Box 25046 Denver Federal Center</address> | ||
<city>Lakewood</city> | ||
<state>CO</state> | ||
<postal>80225</postal> | ||
</cntaddr> | ||
<cntvoice>1-888-ASK-USGS (1-888-275-8747)</cntvoice> | ||
<cntemail>tnm_help@usgs.gov</cntemail> | ||
<hours>Monday through Friday, 8:00 AM to 4:30 PM CT</hours> | ||
<cntinst>Metadata information can also be obtained through online services using The | ||
National Map Viewer at https://nationalmap.gov, or EarthExplorer at | ||
https://earthexplorer.usgs.gov, or Ask USGS at https://www.usgs.gov/ask.</cntinst> | ||
</cntinfo> | ||
</metc> | ||
<metstdn>FGDC Content Standard for Digital Geospatial Metadata</metstdn> | ||
<metstdv>FGDC-STD-001-1998</metstdv> | ||
</metainfo> | ||
</metadata> |
Oops, something went wrong.
e9eccbc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report
e9eccbc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report