geojson-basic-utils

Basic GeoJSON Utility Belt

Usage no npm install needed!

<script type="module">
  import geojsonBasicUtils from 'https://cdn.skypack.dev/geojson-basic-utils';
</script>

README

Library module with some very basic helper methods for working with GeoJSON objects.

  • detectDupeCoords(geoJsonFeature) - find any duplicate points in GeoJSON Feature. Return list of points.
  • removeDupeCoords(geoJsonFeature) - remove duplicate points from GeoJSON Feature, keeping the first. Return new cleaned object.
  • detectAndRemoveDupeCoords(geoJsonFeature) - Check for duplicates, print any that are found and remove them.