Socket
Book a DemoInstallSign in
Socket

atlas-magic

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atlas-magic

a magic CLI for making GIS data files (topojson, geojson)

0.0.10
latest
Source
npmnpm
Version published
Weekly downloads
12
1100%
Maintainers
1
Weekly downloads
 
Created
Source

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…] <>

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

FAQs

Package last updated on 02 Aug 2017

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.