title: How to convert result of Presto `ST_Distance` to meters?
body: <p>I am trying to figure out a way to convert the result of presto geo spatial function ST_DISTANCE to meters. </p>
  
  <p>If I run the this example query:
      SELECT ST_Distance(ST_Point(0.3476, 32.5825),ST_Point(0.0512, 32.4637))</p>
  
  <p>The result I get from Presto is: 0.3193217812802629. The actual distance between these two places is 40,000m. </p>
  
  <p>The presto documentation states that ST_DISTANCE: <code>Returns the 2-dimensional cartesian minimum distance (based on spatial ref) between two geometries in projected units.</code></p>
  
  <p>What I can understand about spatial ref is at links such as these: 
      <a href="http://webhelp.esri.com/arcgiSDEsktop/9.3/index.cfm?TopicName=Defining_a_spatial_reference" rel="noreferrer">http://webhelp.esri.com/arcgiSDEsktop/9.3/index.cfm?TopicName=Defining_a_spatial_reference</a></p>
  
  <p>Which leads me to believe I need to figure you what spatial-ref Presto is using. </p>
  
  <p>If I check the prest docs here: 
      <a href="https://github.com/prestodb/presto/blob/master/presto-geospatial/src/main/java/com/facebook/presto/geospatial/GeoFunctions.java" rel="noreferrer">https://github.com/prestodb/presto/blob/master/presto-geospatial/src/main/java/com/facebook/presto/geospatial/GeoFunctions.java</a></p>
  
  <p>I can guess that is using the ESRI libraries so I assume the ESRI spatial ref? But that is where I get a bit lost as to where to proceed? </p>
  
  <p>Thank you for your help..</p>