LemonLiTree opened a new pull request, #18138:
URL: https://github.com/apache/doris/pull/18138

   add ST_Area function
   Calculate the area of the area on the earth's sphere. Currently, the 
parameter geo supports ST_Circle and ST_Polygon.
   
   mysql> SELECT ST_Area_Square_Meters(ST_Circle(0, 0, 1));
   +-------------------------------------------------+
   | st_area_square_meters(st_circle(0.0, 0.0, 1.0)) |
   +-------------------------------------------------+
   |                              3.1415926535897869 |
   +-------------------------------------------------+
   1 row in set (0.04 sec)
   mysql> SELECT ST_Area_Square_Km(ST_Polygon("POLYGON ((0 0, 1 0, 1 1, 0 1, 0 
0))"));
   +----------------------------------------------------------------------+
   | st_area_square_km(st_polygon('POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))')) |
   +----------------------------------------------------------------------+
   |                                                   12364.036567076409 |
   +----------------------------------------------------------------------+
   1 row in set (0.01 sec)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to