tiger-boundaries

2.0.1 • Public • Published

tiger-boundaries

Node package and command line tool for generating GeoJSON from U.S. Census Bureau Cartographic Boundary Shapefiles.

At it's bare bones, it downloads the counties shapefile, converts it to GeoJSON and (optionally) filters the counties to a particular state.

This is designed to be called from an npm script to help build data for other packages.

Installation

npm install https://github.com/ghing/census-boundaries

Get GeoJSON of counties

API

var getCountyGeoJSON = require('tiger-boundaries').getCountyGeoJSON;

getCountyGeoJSON('500k', ['IA'], function(err, data) {
  console.log(JSON.stringify(data));
});

Command Line

countyjson 500k --state IA > iowa.json

Get GeoJSON of congressional districts

API

var getCongressionalDistrictGeoJSON = require('tiger-boundaries').getCongressionalDistrictGeoJSON;

getCongressionalDistrictGeoJSON('500k', '114', ['IL'], function(err, data) {
  console.log(JSON.stringify(data));
});

Command Line

cdjson 500k 114 --state IL > cd_illinois.json

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    0
  • 2.0.0
    0

Package Sidebar

Install

npm i tiger-boundaries

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

7.86 kB

Total Files

8

Last publish

Collaborators

  • ghing