geojsonkillnulls

Removes all the properties in geojson features with a value of null and writes the results to a file.

Usage no npm install needed!

<script type="module">
  import geojsonkillnulls from 'https://cdn.skypack.dev/geojsonkillnulls';
</script>

README

goejsonkillnulls

Gets rid of all the key values for the properties of each geojson feature where the value is null

Using node filestreams and some elementary regex which is basically looking for markers that would usually be in a geojson polygon file. Not sure how it would do with mixed feature types or just points or polygons, but it could be easily changed to handle them.

Usage

var killNulls = require('geojsonkillnulls');

// First arguemnt is the input file and the second is the name for the output file
killNulls('oceanBuilds.geojson', 'miss.geojson')