Skip to content

USGS NWIS Mapper (Mapper interface for USGS NWIS Waterdata)

Notifications You must be signed in to change notification settings

dkyancey/nwis-mapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server setup

1. Deploy instance on AWS

current system specs
  • m3.large
  • 8GB attached volume
  • ubuntu server 14.04 LTS

2. Set up server

copy server setup script from github

wget https://raw.githubusercontent.com/USGS-OWI/nwis-mapper/master/server-config/server-setup.sh --no-check-certificate

run server setup script

sudo sh server-setup.sh

the nwis mapper application should now be running @ localhost

Generate new NWIS mapper tile cache

required software

ESRI ArcGIS Desktop ~10.3.1
Python 2.7
Python Pillow image library
AWS CLI

1. Run script to pull NWIS sites from USGS waterservices (tile-creation/1_getNWISSites.py)

python 1_getNWISSites.py
  • takes about 90 minutes to run (with 16GB RAM Intel Core i7-3720QM)
  • queries NWIS site service for sites, adds them to a fileGDB
  • fileGDB feature classes are referenced within MXDs for each site type

2. Run script to create new tile cache (tile-creation/2_generateTileCache.py)

python 2_generateTileCache.py D:/
  • takes about 70 minutes to run (with 16GB RAM Intel Core i7-3720QM)
  • this is a wrapper script that generates an ESRI tile cache, cleans it up then converts to TMS tiles
  • output can be uploaded directly to s3

3. Upload to amazon S3 (tile-creation/3_updateS3Bucket.py)

python 3_updateS3Bucket.py d:/cache s3://nwismapper
  • takes about 8 minutes to run
  • loops over each folder in tile cache location, recursively deletes from s3 bucket then re-uploads new cache

About

USGS NWIS Mapper (Mapper interface for USGS NWIS Waterdata)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 60.3%
  • JavaScript 17.3%
  • Python 12.5%
  • CSS 9.7%
  • Shell 0.2%