Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

colonel-mercator

Package Overview
Dependencies
Maintainers
66
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colonel-mercator

[![Build Status](https://travis-ci.org/mapbox/colonel-mercator.svg)](https://travis-ci.org/mapbox/colonel-mercator)[![Coverage Status](https://coveralls.io/repos/mapbox/colonel-mercator/badge.svg?branch=master&service=github)](https://coveralls.io/github/

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
66
Weekly downloads
 
Created
Source

colonel-mercator

Build StatusCoverage Status

Gets raster pixel resolutions, and optionally snaps them to mapnik-omnivore tiling thresholds. Also, generates "metatile" zooms - the tile sizes at which a given input resolution would be over a size threshold based on an "upzoom" (the resolution of zoom levels "up")

image

Install

npm install colonel-mercator
npm link

Usage - resolution

colonel-mercator resolution <raster> --maxres <float> --snap

Arguments

<raster> [path]: an input tiff to get the resolution of

Options

--maxres [float]: the floor at which to set resolution; if maxres > the file's resolution, returns maxres. [DEFAULT=NONE] --snap [flag]: snap to mercator tiling thresholds [BETA] [DEFAULT=FALSE]

Usage - metatile

colonel-mercator metatile <resolution> --zoombreaks '[<int>, <int>, ...]' --upzoom <int>

Arguments

<resolution> [float]: the resolution to evaluate

Options

--zoombreaks [array of ints]: the metatile sizes to create [DEFAULT=[13, 10, 7, 4]]

--upzoom [int]: the number of zoom levels up at which to derive threshold from zoombreaks

FAQs

Package last updated on 22 Dec 2016

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc