0.0.10 • Published 7 years ago

atlas-magic v0.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Atlas-Magic :sparkles:

This tool will:
-> download a shp file from CDN
-> apply an optional filter
-> converts to topojson
-> simplify geometries while preserving topology

Run it

npx atlas-magic us-rivers > newtopojson.json

Watch the magic happen...

Command Line Reference

#atlas-magic <command> options…(https://github.com/bradoyler/atlas-magic/blob/master/bin/atlas-magic.js "Source")

where <command> is:
us-counties, us-cities, us-rivers, us-states, combine-topo

options...

keydefaultexample
--listfilemyFIPScodes.csv (used for filtering)
--filterkeyFIPS 
--max100000for population (when applied)
--simplify0.006 
--quantize1e6 

Examples

US Cities with population over 250k
$ atlas-magic us-cities --max 250000 > cities_over_250k.json
US Counties filtered by a newline delimited list
$ atlas-magic us-counties --listfile fips_codes.csv > my-us-counties.json
US Rivers
$ atlas-magic us-rivers > us-rivers.json
US States
$ atlas-magic us-states > us-states.json
Combine topologies (not merge)
$ atlas-magic us-states > us-states.json
$ atlas-magic us-counties --listfile fips_codes.csv > us-counties.json
$ atlas-magic combine-topo us-states.json us-counties.json > us-states-with-counties.json
0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago