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 badges
Add a ment  | 

1 Answer 1

Reset to default 13

I figured it out thanks to turf.js.

A bination of turf.buffer() and turf.simplify() does the trick.

Reference

本文标签: javascriptEnlarge a GeoJSON polygonStack Overflow