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

raster-marching-squares

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raster-marching-squares

Create isobands and isolines directly from a Raster with the marching-squares algorithm

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
116
decreased by-50.64%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

Marching squares isobands and isolines ready for using along with d3 maps.

The marching squares algorithm code is taken from the MarchingSquares.js project by Ronny Lorenz, adapted to work with nodejs.

INSTALL

Using nodejs:

npm install raster-marching-squares

From the browser:

Download https://github.com/rveciana/raster-marching-squares/blob/master/build/d3-marching-squares.min.js

USAGE

var intervals = [0, 5, 10, 15, 20, 25, 30, 35, 40];
var bands = rastertools.isobands(rasterData, geoTransform, intervals);
var lines = rastertools.isolines(rasterData, geoTransform, intervals);
  • rasterData is a 2D array with the values
  • geoTransform is an array following the conventions of the GDAL data model

EXAMPLES

Keywords

FAQs

Package last updated on 04 Dec 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

  • 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