3 ms·
Thanks for the recommendations. I need to create a polygon of specified width based on an arbitrary GPS track (which can cross itself multiple times). Can anyb
by jakobdabo 7y ago
Thanks for the recommendations.
I need to create a polygon of specified width based on an arbitrary GPS track (which can cross itself multiple times). Can anybody recommend a JS library which is capable of doing this?
- Philnz 7y agoPerhaps check out TurfJS for client side spatial buffers and point in polygon functions. https://turfjs.org/ https://turfjs.org/ Also leaflet.js and openlayers.js for web mapping.
- randomgis 7y agoYou should be able to this JSTS I think. Create a line with the gps track, create a buffer with the specified distance, feed the resulting polygon to your mapping library. https://github.com/bjornharrtell/jsts/blob/master/README.md https://github.com/bjornharrtell/jsts/blob/master/README.md Sample use: http://bjornharrtell.github.io/jsts/ http://bjornharrtell.github.io/jsts/