Skip to content

Abreviates GeoJSON keys like properties, geometry, coordinates to minimize the overhead

License

Notifications You must be signed in to change notification settings

dwilhelm89/compress-geojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Abreviates GeoJSON keys like properties, geometry, coordinates to minimize the overhead

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published