title: Openlayers 3 Circle radius in meters
body: <p>How to get <a href="http://openlayers.org/en/v3.8.1/apidoc/ol.geom.Circle.html" rel="nofollow noreferrer">Circle</a> radius in meters
  May be this is existing question, but i am not getting proper result. I am trying to create Polygon in postgis with same radius &amp; center getting from openlayers circle.</p>
  
  <p>To get radius in meters I followed <a href="https://stackoverflow.com/questions/31805918/how-to-get-the-ray-of-a-circle-in-meters-using-getradius">this</a>.
  Running example <a href="http://jsfiddle.net/0ngLvxoL/2/" rel="nofollow noreferrer">link</a>.</p>
  
  <pre><code>var radiusInMeters = circleRadius * ol.proj.METERS_PER_UNIT['m'];
  </code></pre>
  
  <p>After getting center, radius (in meters) i am trying to generate Polygon(WKT) with postgis (server job) &amp; drawing that feature in map like <a href="http://jsfiddle.net/aqkgLfpL/1/" rel="nofollow noreferrer">this</a>.</p>
  
  <pre><code>select st_astext(st_buffer('POINT(79.25887485937808 17.036647682474722 0)'::geography, 365.70644956827164));
  </code></pre>
  
  <p>But both are not covering same area. Can any body please let me know where i am doing wrong.</p>
  
  <p>Basically my input/output to/from Circle will be in meters only.</p>