Back Arrow

Web Services

Web Services

Web Service land cover response snippet.

Tech & Sources

Software
PostgreSQL/PostGIS, Apache, GNUPlot

Languages
PHP, SQL

Data Sources (one or more):
U.S. Geological Survey (USGS), U.S. Forest Service (USFS), National Elevation Data (NED), National Land Cover Data(NLCD), National Hydrography Data (NHD), Tiger/Line Census, 3D Elevation Program (3DEP), Geographic Names Information Service (GNIS), Open Street Map (OSM), Protected Areas Database v2.1 (PAD), National Interagency Fire Center (NIFC), National Weather Service (NWS), NASA, NOAA, National Wildfire Coordinating Group (NWCG), AirNOW.gov, U.S. Department of Interior (DOI), National Digital Forecast Database (NDFD), European Space Agency (ESA), USAFacts.org, ESRI, Google, Continental Divide Trail Coalition, Appalachian Trail Conservancy (ATC), National Snow and Ice Data Center (NSIDC), PRISM Climate Data Oregon State University, et al, and data collected in the field (trail trace)

Notes

Web Services are the cornerstone of dynamic web content and apps. The examples below are a small sample of over a hundred end points. Each end point represents an SQL query or view and returns data in one or more of the following formats: CSV, JSON, GEOJSON and GRAPH. This service returns data that is not necessarily spatial. Format GEOJSON is only available if end point returns a FeatureCollection. GRAPH format is only available if a corresponding GNUPlot configuration file exists.

Server is intentionally obfuscated in examples.

Statistics for linear feature (trail) intersecting land cover polygons (above image):
https://localhost/stat?
   fmt=json
   &q=landcover
   &trail_id=1
   &startmile=1700
   &endmile=1750
   &assoc=1

GNUPlot elevation profile:
https://localhost/stat?
   width=1200
   &height=350
   &trail_id=1
   &startmile=762
   &endmile=945
   &uom=0
   &labelx=Distance in Miles
   &labely=Elevation in Feet
   &fmt=PNG
   &type=GRAPH
   &q=segElevGraph
   &charttitle=PCT Mile 762 to 945

2022 fire polygons and meta data near specified trail:
https://localhost/stat?
   q=gmapInciPolys
   &trail_id=1
   &year=2022
   &fmt=geojson
   &assoc=1

Get climate data for every month at lat/lon:
https://localhost/stat?
   fmt=json
   &q=ptClimate
   &lon=-122.638494
   &lat=41.26792
   &assoc=1

Get all water body meta data within .03 degrees of lat/lon:
https://localhost/stat?
   q=ptWaterbody
   &lon=-118.696184
   &lat=37.173171
   &tol=.03
   &fmt=json
   &assoc=1

Get forest type at lat/lon:
https://localhost/stat?
   fmt=json
   &q=ptTrees
   &lon=-122.917949
   &lat=40.873076
   &assoc=1

www.Postholer.com © 2005-2022 - W3C - @postholer