New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

appalachia

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appalachia

GeoJSON file of counties in Appalachia, as defined by the Appalachian Regional Commission

latest
Source
npmnpm
Version
0.5.1
Version published
Maintainers
1
Created
Source

What is Appalachia?

TODO: Describe the ARC definition and where it comes from and how it might differ from other definitions of the region.

Spatial files

This package contains GeoJSON files useful for topical mapping.

Counties

  • counties.geojson

Congressional districts (114th congress district boundaries)

  • appalachia-congressional-districts-114.geojson

Node interface

This is really quickly written, not particularly performant, and hasn't been tested to work in the browser via Browserify. It's mostly useful as a convenience in other data processing scripts.

Check whether a congressional district is in Appalachia

var appalachia = require('appalachia');
var districtInAppalachia = appalachia.districtInAppalachia; 

districtInAppalachia('MD', 8); 

Technical details

To re-generate the GeoJSON file, you'll need:

  • A computer running Mac OS X or Linux
  • Node.js
  • wget
  • csvkit

First, clone the git repository for this project:

git clone https://github.com/ghing/appalachia.git

Change directory to the working copy of the project:

cd appalachia

Install Node.js developer dependencies:

npm install --dev

Run an npm script to download the source data, process it, and output the GeoJSON file:

npm run build

Installing system libraries

On some systems, you may have to install underlying libraries to build some of the Node dependencies.

For example, I've had to install Development files for International Components for Unicode:

sudo apt-get install libicu-dev

I've also had to install Geospatial Data Abstraction Library - Development files:

sudo apt-get install libgdal-dev

TODO: Document commands needed to install these libraries with Homebrew.

Data sources

Keywords

Appalachia

FAQs

Package last updated on 22 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts