How to enlarge a GeoJSON polygon ?
Say I have a GeoJSON polygon
I'd like to enlarge this shape to have a larger polygon with the same basis
I did not found anything on the web about this. I found many promising libraries such as turf.js, but couldn't figure out how to achieve this.
I figured it out thanks to turf.js.
A combination of turf.buffer()
and turf.simplify()
does the trick.
Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With