0.0.2 • Published 10 years ago

compress-geojson v0.0.2

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

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);