Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (20 sloc) 760 Bytes

Node bindings for shapelib.maptools.org's implementation of the ESRI shapefile specification with libuv for async file access and decode.

Current version

0.0.1

Disclaimer

Only implements reading shapefiles (no write).
No tests.
My first attempt at node binding to a c library
It occasionally segfaults. (don't know why - c is not my thing)

Usage

npm install node-shapelib-partial
ShapeFile = require('node-shapelib-partial').ShapeFile
shapeFile = new ShapeFile()

shapeFile.open './shape/shape_file_basename', (error, shapeData) -> 
    
    # 
    # callback with shapeData
    #