compress-geojson

0.0.2 • Public • Published

compress-geojson

Abreviates GeoJSON keys like properties, geometry, coordinates to minimize the overhead. Is really slow for large files due to the recursive function and fails if there are already properties like: 't','g','p', 'c','f'

For a large FeatureCollection of 3,5MB (ca. 10.000 features), the compressed Collection had about 2,8MB.

Usage

npm install compress-geojson
var compressGeojson = require('compress-geojson');

var compressed = compressGeojson.compress(geojsonFeature);
var decompressed = compressGeojson.decompress(compressed);

Readme

Keywords

none

Package Sidebar

Install

npm i compress-geojson

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • dwilhelm89