Skip to content

Files

Latest commit

b7390b7 · May 27, 2014

History

History
22 lines (15 loc) · 599 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 599 Bytes

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