1.2.0 • Published 9 years ago

geotype v1.2.0

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

geotype

Build Status

geotype is a cli tool for rendering geojson as ascii in your terminal.

colors npm.io no colors npm.io

##cli

####install

npm install geotype -g

####run

geotype world.geojson

or

cat world.geojson | geotype

##node.js

####install

npm install geotype

####example

var geotype = require('geotype')
var fs = require('fs')

//default
var world = JSON.parse(fs.readFileSync('./world.geojson'))
var ascii = geotype(world)
console.log(ascii)

//options
console.log(geotype(world, {tile: '4/4/4', zoom: 9}))

##options

-z --zoom : specify fixed tile pixel zoom level

-b --bbox=minX,minY,maxX,maxY : set frame to a bbox

-t --tile : set frame to a tile [x/y/z]

-m --mod : overzoom factor

-f --frame : number of tile pixels to pad sides of frame

--nocolor : display plain ascii w/o colors

-p --png : output to png instead of ascii

-r --res [256]: image resolution

-h --help : show docs

##test

npm t

##demo

cd ./test
sh test.sh
1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago