wdft-geojson

0.0.8 • Public • Published

water data for texas - reservoir conditions - geojson

a pair of functions which creates a current reservoir conditions geojson from the water data for texas database. Code request the source data from here

the two functions which the stream can be passed through:

  • stream(options)
    • @param {Object} options - optional declaration of the geometries to be used
  • style()
    • takes no paramters

visualization

quick and dirty visualization. for functional examples, see the 'examples' directory of this repo

var WDFTGeoJSON = require('wdft-geojson');
var request = require('request');
var JSONStream = require('JSONStream');
var request = require('request');
 
request.get('http://waterdatafortexas.org/reservoirs/recent-conditions.json')
      .pipe(JSONStream.parse())
      .pipe(WDFTGeoJSON.stream({geometries: reservoirs}))
      .pipe(WDFTGeoJSON.style())
      .pipe(JSONStream.stringify(false))
      .pipe(process.stdout);

Readme

Keywords

none

Package Sidebar

Install

npm i wdft-geojson

Weekly Downloads

7

Version

0.0.8

License

none

Last publish

Collaborators

  • adambreznicky
  • davidhickman
  • jasonkleinert
  • tnris
  • wilsaj