admin管理员组文章数量:1290949
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.
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.
Share Improve this question asked Nov 2, 2016 at 13:56 Cyril CHAPONCyril CHAPON 3,7474 gold badges25 silver badges40 bronze badges1 Answer
Reset to default 13I figured it out thanks to turf.js.
A bination of turf.buffer()
and turf.simplify()
does the trick.
Reference
本文标签: javascriptEnlarge a GeoJSON polygonStack Overflow
版权声明:本文标题:javascript - Enlarge a GeoJSON polygon - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741512735a2382701.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论