0.0.7 • Published 10 months ago

shp2pb v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

shp2pb

Shp2pb is a utility tool designed to convert Shapefile (shp) formats into Protocol Buffers (protobuf) files. It streamlines the process of transforming geographic data, enabling efficient storage and transmission in a compact, serialized format suitable for various applications

Installation

use npm: $ npm install shp2pb

Example Usage

Take the example data below:

CommonJS

const GeoPB=require('shp2pb');
const buf=GeoPB.shp2pb('data.shp',{wkid:4326});
fs.writeFileSync('data.pb',buf);
const json=GeoPB.pb2json('data.shp',{wkid:4326});
console.log(JSON.stringify(json))

License

Licensed under the MIT License. See LICENSE for details.

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago