GithubHelp home page GithubHelp logo

cardboard's Introduction

cardboard

build status

Cardboard provides the query, indexing, and storage logic for GeoJSON feature storage with CRUD on DynamoDB and S3.

install

npm install cardboard
# or globally
npm install -g cardboard

api

var c = Cardboard({
    accessKeyId: config.awsKey,
    secretAccessKey: config.awsSecret,
    sessionToken: config.sessionToken,
    table: config.DynamoDBTable,
    endpoint: 'http://localhost:4567',
    bucket: 'test',
    prefix: 'test'
});

accessKeyId, secretAccessKey, and sessionToken are optional. See Configuring the SDK in Node.js for more configuration options.

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

c.createTable(tableName, callback);

Create a cardboard table with the specified name.

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

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

// query a bbox, callback-return array of geojson
c.bboxQuery(bbox: array, layer: string, callback: fn);
// delete a feature
c.del(primarykey: string, layer: string, callback: fn);
c.dump(); // -> stream
c.export(); // -> stream
// get information about a dataset (feature count, size, extent)
c.getDatasetInfo(dataset: string, callback: fn);

Approach

This project aims to create a simple, fast geospatial index as a layer on top of 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.

While the whole index in kept in DynamoDB, the larger geometries are stored on S3.

Support target:

cardboard's People

Contributors

mick avatar morganherlocker avatar rclark avatar sgillies avatar tmcw avatar willwhite avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.