-1

Can you tell me how turf js perform operation? Like, Point to Ploygon, we can use buffer for that.

var point = turf.point([-90.548630, 14.616599]);
var buffered = turf.buffer(point, 500, {units: 'miles'});

So which mathematical technique they are using for that? As well as for Points to Envelop or Convex hull or concave.

Is there any documentation for that?

JJJ
  • 32,902
  • 20
  • 89
  • 102
pskkar
  • 432
  • 1
  • 4
  • 18
  • 3
    Isn't that an open source library? You can just look at the code to see what it does. – JJJ May 15 '19 at 08:07
  • Hei, Thanks for your answer, yes I know that. Sometimes it tough to find out the formula after looking on the code. Like, they mentioned that for DISTANCE, "This uses the Haversine formula to account for global curvature." So it will help me to get a better understanding after looking on the Haversine formula. Something like that, what they are using for the convex hull? – pskkar May 15 '19 at 08:41

1 Answers1

1

If you are curious about how does it work, you can source the code: Here you have the git dependency.

Also, the point feature.

Carlos López Marí
  • 1,432
  • 3
  • 18
  • 45