geojson-reducer

geojson-reducer is a node package that simplifies a Polygon or MultiPolyon feature within a GeoJson object.

This package helps ease the load time of geospatial web applications that are displaying complex Polygons. These Polygons may have thousands of coordinates, many of which may not be critical to achieve the basic shape of the Polygon. Perhaps the Polygons load slowly, or perhaps a file being requested is simply too large.

geojson-reducer takes a simple approach, by ejecting coordinates that it considers non-essential to the shape of the Polygon. The result is that the data set is reduced - by up to 50% if possible - while providing an identical experience to the end user of the application or data.

Netherlands demo
netherlands-data.geoJson 279KB 2,265
netherlands-data-sm.geoJson 68KB 1,571 Over 40% of coordinates removed with geojson-reducer.
Iraq demo
iraq-data.geoJson 913KB 20,059
iraq-data-sm.geoJson 612KB 11,182 About 44% of coordinates removed with geojson-reducer.