Have ideas to improve npm?Join in the discussion! »

    esrishapejs

    0.0.2 • Public • Published

    esrishapejs

    This library reads esri shape format.

    Example

     
    //import the library
    var ShpFile = require('esrishapejs');
     
    //you must check your .shp .dbf for init function
    ShpFile.init({
        shpfile:shpfile,
        dbffile:dbffile,
        type:'geojson', // geojson or arcgis 
        }).then(data=>{
            //Returns the true result
            console.log(e)
        },data=>{
            // any error
            console.log(e)
        })
    );

    esrishapejs can undecode the dbf file for utf8 utf16 and gbk2313,when the decode type is gbk2313 you need import the gbk2313.

    Keywords

    Install

    npm i esrishapejs

    DownloadsWeekly Downloads

    2

    Version

    0.0.2

    License

    ISC

    Unpacked Size

    31 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar