@geopan.io/pyramid
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Pyramid

Generate tiles pyramid for an image.

alt text

Installation

This assumes that Node.js has already been installed.

npm update @geopan.io/pyramid -g

Usage

pyramid <image>

Tradeoffs

  • The image tiling happens in parallel for a given level. This could be improved to both speed up the process as well as limiting the risk for spike in CPU consumption.
  • There is risk that for really big images, like orthophoto, the memory suffers with this approach and I would concider using node stream interface instead.
  • I would add unit testing. Currently a single one to illustrate how to deal with Jest.

Help

pyramid -h

# Return

Usage: pyramid [options] <image>

Create a pyramid of tiles from an image

Options:
  -V, --version              output the version number
  -o, --output <output>      destination folder. Default is ./{image}_tiles
  -t, --tilesize <tilesize>  tile size. Default is 256px
  -h, --help                 display help for command

Readme

Keywords

none

Package Sidebar

Install

npm i @geopan.io/pyramid

Weekly Downloads

1

Version

0.2.0

License

ISC

Unpacked Size

337 kB

Total Files

27

Last publish

Collaborators

  • geopan