SHARE
TWEET

Untitled

a guest Jun 24th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function bufferequal(feature){
  2.   var ar = feature.area();
  3.   var perim = feature.perimeter();
  4.  
  5.   var rooted = perim.pow(2).add(ar.multiply(16)).sqrt();
  6.   var nomin = rooted.subtract(perim);
  7.  
  8.   var soln = nomin.divide(8);
  9.  
  10.   var buff = feature.buffer(soln);
  11.  
  12.   return buff;
  13. }
  14.      
  15. var bufferedCollection = yourFeatureCollection.map(bufferequal);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top