Skip to content

xkwangy/cardboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cardboard

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:

About

indexed geo database sketch

Resources

Stars

Watchers

Forks

Packages

No packages published