News for hackers. Stuff that matters.
Re:Show HN: geojson-shave, a tool for reducing the size of G... by matteason on Thursday April 04, 2024 @10:58AM (#39931269)
Have you thought about adding a simplification algorithm such as Ramer-Doublas-Peucker [0] or Visvalingam–Whyatt [1]? I've used https://mapshaper.org/ to do GeoJSON path simplification before and those seem to work very well. For applications which want to maintain path accuracy while reducing the number of waypoints that may be more effective than truncating the decimal places

[0] https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93...

[1] https://en.wikipedia.org/wiki/Visvalingam%E2%80%93Whyatt_alg...

There are no comments on this comment yet.