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

cardboard

Package Overview
Dependencies
Maintainers
21
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cardboard

[![build status](https://secure.travis-ci.org/mapbox/cardboard.png)](http://travis-ci.org/mapbox/cardboard)

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-39.39%
Maintainers
21
Weekly downloads
 
Created
Source

cardboard

build status

Demo platform for s2 on LevelDB. This provides query, indexing, and storage logic. Look to node-s2 for bindings and higher level code for interfaces.

install

npm install cardboard
# or globally
npm install -g cardboard

api

var c = Cardboard(config)

Initialize a new cardboard database connector given a config object that is sent to dyno.

c.insert(primarykey: string, feature: object, layer: string, callback: fn);

Insert a single feature, indexing it with a primary key in a given layer.

c.bboxQuery(bbox: array, layer: string, callback: fn);
c.dumpGeoJSON(callback: fn);
c.dump(); // -> stream
c.export(); // -> stream

Approach

This project aims to create a simple, fast geospatial index as a layer on top of LevelDB and DynamoDB. This means that the index will not be built into the database or contained in a single R-Tree - it will be baked into the indexes by which data is stored.

Support target:

Keywords

FAQs

Package last updated on 29 Jul 2014

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